use of eu.bcvsolutions.idm.core.event.domain.MockDto in project CzechIdMng by bcvsolutions.
the class DefaultEntityEventManagerIntergationTest method testBaseDtoProcessing.
@Test
public void testBaseDtoProcessing() {
MockDto mockDto = new MockDto();
ObserveDtoProcessor.listenContent(mockDto.getId());
CoreEvent<BaseDto> event = new CoreEvent<BaseDto>(CoreEventType.NOTIFY, mockDto);
EventContext<BaseDto> processed = manager.process(event);
Assert.assertNotNull(processed.getLastResult());
Boolean observed = (Boolean) processed.getLastResult().getEvent().getProperties().get(ObserveDtoProcessor.PROPERTY_OBSERVED);
//
Assert.assertNotNull(observed);
Assert.assertTrue(observed);
}
Aggregations