Class
caplin.trading.testing

InstrumentDataSubscriberStub

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.

Constructor Summary

Attributes Name and Description
caplin.trading.testing.InstrumentDataSubscriberStub()

Constructs an instance of caplin.trading.testing.InstrumentDataSubscriberStub.

Method Summary

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.

Methods implemented from class caplin.trading.trademodel.InstrumentDataSubscriber:
subscribeTradeLeg, unsubscribeTradeLeg

Constructor Detail

caplin.trading.testing.InstrumentDataSubscriberStub()

Constructs an instance of caplin.trading.testing.InstrumentDataSubscriberStub.

Method Detail

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.

Parameters
Map mData the instrument data being received