@Test public void shouldReturnDecisionTree() { tamaIVRContext.callState(CallState.AUTHENTICATED); tamaCallFlowController.getTree(TAMATreeRegistry.CURRENT_DOSAGE_REMINDER, kooKooIVRContext); verify(treeRegistry).getTree(TAMATreeRegistry.CURRENT_DOSAGE_REMINDER); }
@Test public void shouldReturnSymptomReportingTreeBasedOnCallState() { tamaIVRContext.callState(CallState.SYMPTOM_REPORTING_TREE); String symptomReportingTreeName = "Regimen1_1"; tamaIVRContext.symptomReportingTree(symptomReportingTreeName); tamaCallFlowController.getTree(TAMATreeRegistry.REGIMEN_1_TO_6, kooKooIVRContext); verify(symptomModuleStrategy).getTree("Regimen_1_To_6", tamaIVRContext); }