Search in sources :

Example 1 with QuestionGroupDetailsMatcher

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"));
}
Also used : QuestionGroupDetails(org.mifos.platform.questionnaire.service.QuestionGroupDetails) QuestionGroupDetailsMatcher(org.mifos.platform.questionnaire.matchers.QuestionGroupDetailsMatcher) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 QuestionGroupDetailsMatcher (org.mifos.platform.questionnaire.matchers.QuestionGroupDetailsMatcher)1 QuestionGroupDetails (org.mifos.platform.questionnaire.service.QuestionGroupDetails)1