use of com.enonic.xp.script.event.ScriptEventListener in project xp by enonic.
the class ScriptEventManagerImplTest method testIterable.
@Test
public void testIterable() {
final ScriptEventListener listener = newListener("foo.bar");
this.manager.add(listener);
assertEquals(1, StreamSupport.stream(manager.spliterator(), false).count());
assertSame(listener, this.manager.iterator().next());
}
Aggregations