use of org.mifos.platform.questionnaire.domain.EventSourceEntity in project head by mifos.
the class QuestionnaireServiceIntegrationTest method verifyEventSources.
private void verifyEventSources(QuestionGroup questionGroup) {
Set<EventSourceEntity> eventSources = questionGroup.getEventSources();
assertNotNull(eventSources);
Assert.assertEquals(1, eventSources.size());
EventSourceEntity eventSourceEntity = eventSources.toArray(new EventSourceEntity[eventSources.size()])[0];
Assert.assertEquals("Create", eventSourceEntity.getEvent().getName());
Assert.assertEquals("Client", eventSourceEntity.getSource().getEntityType());
Assert.assertEquals("Create Client", eventSourceEntity.getDescription());
}
Aggregations