use of eu.bcvsolutions.idm.core.event.ConditionalContent in project CzechIdMng by bcvsolutions.
the class DefaultEntityEventManagerIntergationTest method testConditionalProcessor.
@Test
public void testConditionalProcessor() {
EntityEvent<ConditionalContent> event = new CoreEvent<>(CoreEventType.CREATE, new ConditionalContent(false));
EventContext<ConditionalContent> context = entityEventManager.process(event);
//
assertEquals(0, context.getResults().size());
//
event = new CoreEvent<>(CoreEventType.CREATE, new ConditionalContent(true));
context = entityEventManager.process(event);
//
assertEquals(1, context.getResults().size());
}
Aggregations