Fixture
is the interface for individual fixtures added to the GWTTestRunner. The purpose of
a Fixture is to enable tests to manipulate and access a specific area of the system under tests using the
GWT (given-when-then) BDD format.
Attributes | Name and Description |
---|---|
|
caplin.testing.Fixture()
|
Attributes | Name and Description |
---|---|
|
void
addSubFixtures(caplin.testing.FixtureRegistry oFixtureRegistry)
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. |
|
Boolean
canHandleProperty(String sProperty)
This method is called by the GWTTestRunner to check whether a property used in a GWT test is supported by the fixture. |
|
void
doGiven(String sPropertyName, String vValue)
This method is called in order to manipulate a property on the system under test in a given clause. |
|
void
doThen(String sPropertyName, String vValue)
This method is called in order to assert a property's value on the system under test. |
|
void
doWhen(String sPropertyName, String vValue)
This method is called in order to manipulate a property on the system under test in a when clause. |
|
void
setUp()
This method is called just before a GWT test. |
|
void
tearDown()
|
►
caplin.testing.Fixture()
►
void
addSubFixtures(caplin.testing.FixtureRegistry oFixtureRegistry)
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.
caplin.testing.FixtureRegistry | oFixtureRegistry | The registry to which the fixtures should be registered. |
►
Boolean
canHandleProperty(String sProperty)
This method is called by the GWTTestRunner to check whether a property used in a GWT test is supported by the fixture.
String | sProperty | the property name to check. |
►
void
doGiven(String sPropertyName, String vValue)
This method is called in order to manipulate a property on the system under test in a given clause.
String | sPropertyName | The property to be changed. |
String | vValue | The new value of the property. |
►
void
doThen(String sPropertyName, String vValue)
This method is called in order to assert a property's value on the system under test.
String | sPropertyName | The property name to assert. |
String | vValue | The value to assert. |
►
void
doWhen(String sPropertyName, String vValue)
This method is called in order to manipulate a property on the system under test in a when clause.
String | sPropertyName | The property to be changed. |
String | vValue | The new value of the property. |
►
void
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.
►
void
tearDown()