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
public class MockEventPublisher extends Object implements com.atlassian.event.api.EventPublisher
-
-
Constructor Summary
Constructors Constructor Description MockEventPublisher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
publish
public void publish(Object o)
- Specified by:
publish
in interfacecom.atlassian.event.api.EventPublisher
-
register
public void register(Object o)
- Specified by:
register
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
unregister
public void unregister(Object o)
- Specified by:
unregister
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
unregisterAll
public void unregisterAll()
- Specified by:
unregisterAll
in interfacecom.atlassian.event.api.EventListenerRegistrar
-
countPublishedEvents
public <T> long countPublishedEvents(Class<T> eventClass, Predicate<T> eventsPredicate)
-
reset
public void reset()
-
-