Search in sources :

Example 1 with ProjectContentEventListener

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

the class ProjectContentEventListenerTest method setUpNode.

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

Aggregations

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