use of org.motechproject.event.listener.impl.EventListenerTree in project motech by motech.
the class EventListenerRegistryTest method testEmptyEventListRegistration.
@Test
public void testEmptyEventListRegistration() throws NoSuchFieldException {
List<String> subjects = new ArrayList<String>();
EventListener sel = new SampleEventListener();
EventListenerTree mockTree = mock(EventListenerTree.class);
PrivateAccessor.setField(registry, "listenerTree", mockTree);
registry.registerListener(sel, subjects);
verify(mockTree, times(0)).addListener(Matchers.<EventListener>anyObject(), anyString());
}
Aggregations