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