Class
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 caplin.services.testing.ConnectionServiceStub is registered as a service on the 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")
    ...

Constructor Summary

Attributes Name and Description
caplin.services.testing.StreamlinkFixture()

Constructs a caplin.services.testing.StreamlinkFixture.

Field Summary

Attributes Name and Description
doGiven

doWhen

Method Summary

Attributes Name and Description
void canHandleProperty( property)

void doThen( property, value)

Methods implemented from class caplin.testing.Fixture:
addSubFixtures, setUp, tearDown

Constructor Detail

caplin.services.testing.StreamlinkFixture()

Constructs a caplin.services.testing.StreamlinkFixture.

Field Detail

Method Detail

void canHandleProperty( property)

Parameters
property
See
caplin.testing.Fixture#canHandleProperty

void doThen( property, value)

Parameters
property
value
See
caplin.testing.Fixture#doThen