use of org.mifos.platform.questionnaire.matchers.QuestionGroupDetailsMatcher in project head by mifos.
the class QuestionGroupControllerTest method testSaveQuestionnaireSuccess.
@Test
public void testSaveQuestionnaireSuccess() {
String result = questionGroupController.saveQuestionnaire(getQuestionGroupDetails(), 1, requestContext);
verify(questionnaireServiceFacade, times(1)).saveResponses(argThat(new QuestionGroupDetailsMatcher(new QuestionGroupDetails(1, 2, 3, asList(getQuestionGroupDetail(TITLE, "View", "Client", "S1", "S3"))))));
assertThat(result, is("success"));
}
Aggregations