public class MockEventPublisher extends Object implements com.atlassian.event.api.EventPublisher
Constructor and Description |
---|
MockEventPublisher() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
getEvents()
Returns the list of events published in this mock.
|
Object |
getSingleEvent()
Returns the single event published in this mock EventPublisher.
|
void |
publish(Object event) |
void |
register(Object listener) |
void |
unregister(Object listener) |
void |
unregisterAll() |
public void publish(Object event)
publish
in interface com.atlassian.event.api.EventPublisher
public void register(Object listener)
register
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregister(Object listener)
unregister
in interface com.atlassian.event.api.EventListenerRegistrar
public void unregisterAll()
unregisterAll
in interface com.atlassian.event.api.EventListenerRegistrar
public Object getSingleEvent()
Copyright © 2002-2021 Atlassian. All Rights Reserved.