Caplin Trader 4.0.3

Class: module:caplin/services/testing/StreamlinkFixture

module:caplin/services/testing/StreamlinkFixture

Constructor

new module:caplin/services/testing/StreamlinkFixture()

Constructs a caplin.services.testing.StreamlinkFixture. The StreamlinkFixture server to provide a way for tests to interact with the StreamlinkStub.

Use of the Fixture assumes that a module:caplin/services/testing/ConnectionServiceStub is registered as a service on the module:caplin/core/ServiceRegistry with the alias "caplin.connection-service" as this service will be the one providing us the StreamlinkStub.

Tests may use the StreamlinkFixture to:

  • Send an insert update: given("streamlink./MYCONTAINER/FX.sendInsertUpdateAtPosition => 0")
    ...
  • Send a remove update: given(streamlink./MYCONTAINER/FX.sendRemoveUpdateAtPosition = 0")
    ...
  • Send a move update: given(streamlink./MYCONTAINER/FX.sendMoveUpdateFromTo = 0,1")
    ...
Implements:

Members

doGiven

See:
  • module:caplin/testing/Fixture#doGiven

doWhen

See:
  • module:caplin/testing/Fixture#doWhen

Methods

canHandleProperty()

See:
  • module:caplin/testing/Fixture#canHandleProperty

doThen()

See:
  • module:caplin/testing/Fixture#doThen