Package com.atlassian.bamboo.mock.event
Class MockEventPublisher
java.lang.Object
com.atlassian.bamboo.mock.event.MockEventPublisher
- All Implemented Interfaces:
com.atlassian.event.api.EventListenerRegistrar
,com.atlassian.event.api.EventPublisher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> long
countPublishedEvents
(Class<T> eventClass, Predicate<T> eventsPredicate) void
<T> Stream<T>
publishedEventsOfType
(Class<T> eventClass) void
void
reset()
void
unregister
(Object o) void
-
Constructor Details
-
MockEventPublisher
public MockEventPublisher()
-
-
Method Details
-
publish
- Specified by:
publish
in interfacecom.atlassian.event.api.EventPublisher
-
register
- Specified by:
register
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
unregister
- Specified by:
unregister
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
unregisterAll
public void unregisterAll()- Specified by:
unregisterAll
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
publishedEvents
-
publishedEventsOfType
-
countPublishedEvents
-
reset
public void reset()
-