@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); }
private void setupContext() { setupKookooContext(); context = new TAMAIVRContextForTest(kooKooIVRContext); context.callState(CallState.AUTHENTICATED); when(tamaivrContextFactory.create(kooKooIVRContext)).thenReturn(context); }