Constructor
new module:caplin/services/testing/SubscriptionStub(listener, record)
A SubscriptionStub stubs out a
module:caplin/services/messaging/Subscription
instance
for the purpose of components which rely on streamed data.
This class uses emitr.
Parameters:
Name | Type | Description |
---|---|---|
listener |
module:caplin/services/messaging/SubscriptionListener | Listener to this subscription |
record |
module:caplin/services/testing/RecordStub |
- Implements:
Methods
-
dispose()
-
getSubject()
-
isPaused()
-
pause()
-
resume()