Caplin Trader 4.8.0

Interface: module:br/test/FixtureFactory

module:br/test/FixtureFactory

An implementing FixtureFactory can have an optional setUp method which will be called before each test is executed and can be used to reset the state of a test and its stubs.
Constructs a new instance of FixtureFactory.
Implementations:

Methods

addFixtures(fixtureRegistry)

This method is called once by the test-runner after the FixtureFactory is constructed. The implementation should add to the test runner all the fixtures that are needed by the tests.
Parameters:
Name Type Description
fixtureRegistry module:br/test/FixtureRegistry The registry to which the fixtures should be registered.
Implementations:
  • module:caplin/element/testing/RendererFixtureFactory#addFixtures
  • module:LayoutModelFixtureFactory#addFixtures