use of org.xwiki.observation.event.Event in project celements-blog by celements.
the class BlogUpdateListenerTest method testUpdatedEvent.
@Test
public void testUpdatedEvent() {
Event event = listener.getUpdatedEvent(null);
assertNotNull(event);
assertSame(BlogUpdatedEvent.class, event.getClass());
assertTrue(event.matches(new BlogUpdatedEvent()));
assertNotSame(listener.getUpdatedEvent(null), event);
}
use of org.xwiki.observation.event.Event in project celements-blog by celements.
the class BlogUpdateListenerTest method testCreatedEvent.
@Test
public void testCreatedEvent() {
Event event = listener.getCreatedEvent(null);
assertNotNull(event);
assertSame(BlogCreatedEvent.class, event.getClass());
assertTrue(event.matches(new BlogCreatedEvent()));
assertNotSame(listener.getCreatedEvent(null), event);
}
use of org.xwiki.observation.event.Event in project celements-blog by celements.
the class ArticleCreateListenerTest method testCreatingEvent.
@Test
public void testCreatingEvent() {
Event event = listener.getCreatingEvent(null);
assertNotNull(event);
assertSame(ArticleCreatingEvent.class, event.getClass());
assertTrue(event.matches(new ArticleCreatingEvent()));
assertNotSame(listener.getCreatingEvent(null), event);
}
use of org.xwiki.observation.event.Event in project celements-blog by celements.
the class BlogDeleteListenerTest method testDeletingEvent.
@Test
public void testDeletingEvent() {
Event event = listener.getDeletingEvent(null);
assertNotNull(event);
assertSame(BlogDeletingEvent.class, event.getClass());
assertTrue(event.matches(new BlogDeletingEvent()));
assertNotSame(listener.getDeletingEvent(null), event);
}
Aggregations