use of com.celements.blog.observation.event.ArticleDeletingEvent in project celements-blog by celements.
the class ArticleDeleteListenerTest method testDeletingEvent.
@Test
public void testDeletingEvent() {
Event event = listener.getDeletingEvent(null);
assertNotNull(event);
assertSame(ArticleDeletingEvent.class, event.getClass());
assertTrue(event.matches(new ArticleDeletingEvent()));
assertNotSame(listener.getDeletingEvent(null), event);
}
use of com.celements.blog.observation.event.ArticleDeletingEvent in project celements-blog by celements.
the class ArticleUpdateListenerTest method testDeletingEvent.
@Test
public void testDeletingEvent() {
Event event = listener.getDeletingEvent(null);
assertNotNull(event);
assertSame(ArticleDeletingEvent.class, event.getClass());
assertTrue(event.matches(new ArticleDeletingEvent()));
assertNotSame(listener.getDeletingEvent(null), event);
}
Aggregations