Package org.djutils.event
Class EventPubSubTest.TestEventListener
java.lang.Object
org.djutils.event.EventPubSubTest.TestEventListener
- All Implemented Interfaces:
Serializable
,EventListener
,org.djutils.event.EventListenerInterface
- Enclosing class:
- EventPubSubTest
protected static class EventPubSubTest.TestEventListener extends Object implements org.djutils.event.EventListenerInterface
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Modifier Constructor Description protected
TestEventListener()
-
Method Summary
Modifier and Type Method Description org.djutils.event.EventInterface
getReceivedEvent()
void
notify(org.djutils.event.EventInterface event)
void
setExpectedObject(Object expectedObject)
void
setExpectingNotification(boolean expectingNotification)
-
Constructor Details
-
TestEventListener
protected TestEventListener()
-
-
Method Details
-
setExpectingNotification
public void setExpectingNotification(boolean expectingNotification)- Parameters:
expectingNotification
- set expectingNotification
-
setExpectedObject
- Parameters:
expectedObject
- set expectedObject
-
getReceivedEvent
public org.djutils.event.EventInterface getReceivedEvent()- Returns:
- receivedEvent
-
notify
- Specified by:
notify
in interfaceorg.djutils.event.EventListenerInterface
- Throws:
RemoteException
-