コード例 #1
0
  @Before
  public void setUp() {
    initMocks(this);
    tamaCallFlowController = new TAMACallFlowController(treeRegistry, allPatients, contextFactory);
    tamaCallFlowController.registerPillModule(pillModuleStrategy);
    tamaCallFlowController.registerOutboxModule();
    tamaCallFlowController.registerSymptomModule(symptomModuleStrategy);

    when(kooKooIVRContext.cookies()).thenReturn(cookies);
    tamaIVRContext = new TAMAIVRContextForTest(kooKooIVRContext);
    when(contextFactory.create(kooKooIVRContext)).thenReturn(tamaIVRContext);
  }
コード例 #2
0
 private void setupContext() {
   setupKookooContext();
   context = new TAMAIVRContextForTest(kooKooIVRContext);
   context.callState(CallState.AUTHENTICATED);
   when(tamaivrContextFactory.create(kooKooIVRContext)).thenReturn(context);
 }