use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.
the class QuestionnaireMapperTest method getEventSources.
private HashSet<EventSourceEntity> getEventSources(String event, String source) {
EventSourceEntity eventSourceEntity = new EventSourceEntity();
EventEntity eventEntity = new EventEntity();
eventEntity.setName(event);
eventSourceEntity.setEvent(eventEntity);
EntityMaster entityMaster = new EntityMaster();
entityMaster.setEntityType(source);
eventSourceEntity.setSource(entityMaster);
HashSet<EventSourceEntity> eventSources = new HashSet<EventSourceEntity>();
eventSources.add(eventSourceEntity);
return eventSources;
}
use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.
the class QuestionnaireMapperTest method getEventSourceEntities.
private List<EventSourceEntity> getEventSourceEntities(String event, String source, String description) {
List<EventSourceEntity> events = new ArrayList<EventSourceEntity>();
EventSourceEntity eventSourceEntity = new EventSourceEntity();
eventSourceEntity.setDescription(description);
EventEntity eventEntity = new EventEntity();
eventEntity.setName(event);
eventSourceEntity.setEvent(eventEntity);
EntityMaster entityMaster = new EntityMaster();
entityMaster.setEntityType(source);
eventSourceEntity.setSource(entityMaster);
events.add(eventSourceEntity);
return events;
}
use of org.mifos.platform.questionnaire.domain.EventEntity in project head by mifos.
the class QuestionnaireMapperTest method getEventSourceEntity.
private EventSourceEntity getEventSourceEntity(String event, String source) {
EventSourceEntity eventSource = new EventSourceEntity();
EventEntity eventEntity = new EventEntity();
eventEntity.setName(event);
eventSource.setEvent(eventEntity);
EntityMaster entityMaster = new EntityMaster();
entityMaster.setEntityType(source);
eventSource.setSource(entityMaster);
return eventSource;
}
Aggregations