Search in sources :

Example 1 with ProjectEventListener

use of com.enonic.xp.core.impl.content.ProjectEventListener in project xp by enonic.

the class ProjectEventListenerTest method setUpNode.

@BeforeEach
protected void setUpNode() throws Exception {
    super.setUpNode();
    final ParentContentSynchronizer synchronizer = new ParentContentSynchronizer(contentService, mediaInfoService);
    listener = new ProjectEventListener(this.projectService, this.taskService, synchronizer);
    eventCaptor = ArgumentCaptor.forClass(Event.class);
    handledEvents = Sets.newHashSet();
}
Also used : ProjectEventListener(com.enonic.xp.core.impl.content.ProjectEventListener) ParentContentSynchronizer(com.enonic.xp.core.impl.content.ParentContentSynchronizer) Event(com.enonic.xp.event.Event) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

ParentContentSynchronizer (com.enonic.xp.core.impl.content.ParentContentSynchronizer)1 ProjectEventListener (com.enonic.xp.core.impl.content.ProjectEventListener)1 Event (com.enonic.xp.event.Event)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1