- Implementations:
- module:br/component/testing/ComponentFixture
- module:br/test/TimeFixture
- module:br/test/ViewFixture
- module:caplin/component/testing/ComponentFixture
- module:caplin/element/testing/RendererFixture
- module:caplin/element/testing/RendererModelFixture
- module:caplin/fx/testing/BusinessDateServiceFixture
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture
- module:caplin/menu/testing/MenuModelFixture
- module:caplin/services/testing/ConnectionServiceFixture
- module:caplin/services/testing/PermissionServiceFixture
- module:caplin/services/testing/StreamlinkFixture
- module:caplin/testing/DataSubscriptionFixture
- module:caplin/trading/testing/TOBOFixture
- module:caplin/trading/testing/TradeMessageFixture
- module:caplin/watchlist/testing/WatchlistFixture
Methods
-
addSubFixtures(fixtureRegistry)
-
This optional interface method can be implemented by a Fixture for a complex system which can be conceptually decomposed into separate sub-systems, enabling the fixture to delegate the handling of some fixture properties to the sub-fixtures. This method is called by the GWTTestRunner.
Parameters:
Name Type Description fixtureRegistry
module:br/test/FixtureRegistry The registry to which the fixtures should be registered. - Implementations:
-
canHandleProperty(propertyName) → {Boolean}
-
This method is called by the GWTTestRunner to check whether a property used in a GWT test is supported by the fixture.
Parameters:
Name Type Description propertyName
String the property name to check. - Implementations:
- module:br/component/testing/ComponentFixture#canHandleProperty
- module:br/test/TimeFixture#canHandleProperty
- module:br/test/ViewFixture#canHandleProperty
- module:caplin/component/testing/ComponentFixture#canHandleProperty
- module:caplin/element/testing/RendererFixture#canHandleProperty
- module:caplin/element/testing/RendererModelFixture#canHandleProperty
- module:caplin/fx/testing/BusinessDateServiceFixture#canHandleProperty
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#canHandleProperty
- module:caplin/menu/testing/MenuModelFixture#canHandleProperty
- module:caplin/services/testing/ConnectionServiceFixture#canHandleProperty
- module:caplin/services/testing/PermissionServiceFixture#canHandleProperty
- module:caplin/services/testing/StreamlinkFixture#canHandleProperty
- module:caplin/testing/DataSubscriptionFixture#canHandleProperty
- module:caplin/trading/testing/TOBOFixture#canHandleProperty
- module:caplin/trading/testing/TradeMessageFixture#canHandleProperty
- module:caplin/watchlist/testing/WatchlistFixture#canHandleProperty
Returns:
true if the fixture handles the property; false otherwise.- Type
- Boolean
-
doGiven(propertyName, value)
-
This method is called in order to manipulate a property on the system under test in a given clause.
Parameters:
Name Type Description propertyName
String The property to be changed. value
String The new value of the property. - Implementations:
- module:br/component/testing/ComponentFixture#doGiven
- module:br/test/TimeFixture#doGiven
- module:br/test/ViewFixture#doGiven
- module:caplin/component/testing/ComponentFixture#doGiven
- module:caplin/element/testing/RendererFixture#doGiven
- module:caplin/element/testing/RendererModelFixture#doGiven
- module:caplin/fx/testing/BusinessDateServiceFixture#doGiven
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#doGiven
- module:caplin/menu/testing/MenuModelFixture#doGiven
- module:caplin/services/testing/ConnectionServiceFixture#doGiven
- module:caplin/services/testing/PermissionServiceFixture#doGiven
- module:caplin/services/testing/StreamlinkFixture#doGiven
- module:caplin/testing/DataSubscriptionFixture#doGiven
- module:caplin/trading/testing/TOBOFixture#doGiven
- module:caplin/trading/testing/TradeMessageFixture#doGiven
- module:caplin/watchlist/testing/WatchlistFixture#doGiven
-
doThen(propertyName, value)
-
This method is called in order to assert a property's value on the system under test.
Parameters:
Name Type Description propertyName
String The property name to assert. value
String The value to assert. - Implementations:
- module:br/component/testing/ComponentFixture#doThen
- module:br/test/TimeFixture#doThen
- module:br/test/ViewFixture#doThen
- module:caplin/component/testing/ComponentFixture#doThen
- module:caplin/element/testing/RendererFixture#doThen
- module:caplin/element/testing/RendererModelFixture#doThen
- module:caplin/fx/testing/BusinessDateServiceFixture#doThen
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#doThen
- module:caplin/menu/testing/MenuModelFixture#doThen
- module:caplin/services/testing/ConnectionServiceFixture#doThen
- module:caplin/services/testing/PermissionServiceFixture#doThen
- module:caplin/services/testing/StreamlinkFixture#doThen
- module:caplin/testing/DataSubscriptionFixture#doThen
- module:caplin/trading/testing/TOBOFixture#doThen
- module:caplin/trading/testing/TradeMessageFixture#doThen
- module:caplin/watchlist/testing/WatchlistFixture#doThen
-
doWhen(propertyName, value)
-
This method is called in order to manipulate a property on the system under test in a when clause.
Parameters:
Name Type Description propertyName
String The property to be changed. value
String The new value of the property. - Implementations:
- module:br/component/testing/ComponentFixture#doWhen
- module:br/test/TimeFixture#doWhen
- module:br/test/ViewFixture#doWhen
- module:caplin/component/testing/ComponentFixture#doWhen
- module:caplin/element/testing/RendererFixture#doWhen
- module:caplin/element/testing/RendererModelFixture#doWhen
- module:caplin/fx/testing/BusinessDateServiceFixture#doWhen
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#doWhen
- module:caplin/menu/testing/MenuModelFixture#doWhen
- module:caplin/services/testing/ConnectionServiceFixture#doWhen
- module:caplin/services/testing/PermissionServiceFixture#doWhen
- module:caplin/services/testing/StreamlinkFixture#doWhen
- module:caplin/testing/DataSubscriptionFixture#doWhen
- module:caplin/trading/testing/TOBOFixture#doWhen
- module:caplin/trading/testing/TradeMessageFixture#doWhen
- module:caplin/watchlist/testing/WatchlistFixture#doWhen
-
setUp()
-
This method is called just before a GWT test. This optional interface method can be implemented if the fixture is required to correctly set up the system-under-test before each test.
- Implementations:
- module:br/component/testing/ComponentFixture#setUp
- module:br/test/ViewFixture#setUp
- module:caplin/component/testing/ComponentFixture#setUp
- module:caplin/element/testing/RendererFixture#setUp
- module:caplin/element/testing/RendererModelFixture#setUp
- module:caplin/fx/testing/BusinessDateServiceFixture#setUp
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#setUp
- module:caplin/watchlist/testing/WatchlistFixture#setUp
-
tearDown()
-
This method is called just after a GWT test. This optional interface method can be implemented if the fixture is required to correctly tear down the system-under-test after each test or to reset any state held in the fixture's implementation.
- Implementations:
- module:br/component/testing/ComponentFixture#tearDown
- module:br/test/TimeFixture#tearDown
- module:br/test/ViewFixture#tearDown
- module:caplin/component/testing/ComponentFixture#tearDown
- module:caplin/element/testing/RendererFixture#tearDown
- module:caplin/element/testing/RendererModelFixture#tearDown
- module:caplin/fx/testing/BusinessDateServiceFixture#tearDown
- module:caplin/layout/testing/LayoutModelFixture~LayoutModelFixture#tearDown
- module:caplin/menu/testing/MenuModelFixture#tearDown
- module:caplin/testing/DataSubscriptionFixture#tearDown
- module:caplin/trading/testing/TradeMessageFixture#tearDown
- module:caplin/watchlist/testing/WatchlistFixture#tearDown