use of com.celements.blog.observation.event.BlogDeletedEvent in project celements-blog by celements.
the class BlogDeleteListenerTest method testDeletedEvent.
@Test
public void testDeletedEvent() {
Event event = listener.getDeletedEvent(null);
assertNotNull(event);
assertSame(BlogDeletedEvent.class, event.getClass());
assertTrue(event.matches(new BlogDeletedEvent()));
assertNotSame(listener.getDeletedEvent(null), event);
}
use of com.celements.blog.observation.event.BlogDeletedEvent in project celements-blog by celements.
the class BlogUpdateListenerTest method testDeletedEvent.
@Test
public void testDeletedEvent() {
Event event = listener.getDeletedEvent(null);
assertNotNull(event);
assertSame(BlogDeletedEvent.class, event.getClass());
assertTrue(event.matches(new BlogDeletedEvent()));
assertNotSame(listener.getDeletedEvent(null), event);
}
Aggregations