A InstrumentDataSubscriberStub replaces the caplin.trading.trademodel.SL4BInstrumentDataSubscriber for the purpose of testing ESP trades and trading components in acceptance tests and workbenches by propagating instrument data sent from a mock server component to the subscribed trade leg.
Attributes | Name and Description |
---|---|
|
caplin.trading.testing.InstrumentDataSubscriberStub()
Constructs an instance of |
Attributes | Name and Description |
---|---|
|
void
receiveData(Map mData)
This method is called by a mock trade server to simulate the receipt of instrument data from Liberator via SL4B. |
►
caplin.trading.testing.InstrumentDataSubscriberStub()
Constructs an instance of caplin.trading.testing.InstrumentDataSubscriberStub
.
►
void
receiveData(Map mData)
This method is called by a mock trade server to simulate the receipt of instrument data from Liberator via SL4B. The event is propagated to the subscribed trade leg. This stub will print out the message to a logger if one has been defined.
Map | mData | the instrument data being received |