public class MockEventPublisher extends Object implements com.atlassian.event.api.EventPublisher
Constructor and Description |
---|
MockEventPublisher() |
Modifier and Type | Method and Description |
---|---|
<T> long |
countPublishedEvents(Class<T> eventClass,
Predicate<T> eventsPredicate) |
void |
publish(Object o) |
List<Object> |
publishedEvents() |
<T> Stream<T> |
publishedEventsOfType(Class<T> eventClass) |
void |
register(Object o) |
void |
reset() |
void |
unregister(Object o) |
void |
unregisterAll() |
public void publish(Object o)
publish
in interface com.atlassian.event.api.EventPublisher
public void register(Object o)
register
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregister(Object o)
unregister
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregisterAll()
unregisterAll
in interface com.atlassian.event.api.EventListenerRegistrar
public <T> long countPublishedEvents(Class<T> eventClass, Predicate<T> eventsPredicate)
public void reset()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.