Methods
add Sub Fixtures(fixture Registry)
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 |
The registry to which the fixtures should be registered. |
- Implements:
can Handle Property(property Name) → {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. |
- Implements:
Returns:
true if the fixture handles the property; false otherwise.
- Type
- Boolean
do Given(property Name, value)
Parameters:
Name | Type | Description |
---|---|---|
propertyName |
String | The property name (e.g. 'time.timeMode' or 'time.passedBy'). |
value |
Variant | The value to set. |
- Implements:
- See:
-
- br-test/Fixture#doGiven
do Then(property Name, value)
TimeFixture does not support doThen.
Parameters:
Name | Type | Description |
---|---|---|
propertyName |
String | The property name. |
value |
Variant | The value to set. |
- Implements:
- See:
-
- br-test/Fixture#doThen
do When(property Name, value)
Parameters:
Name | Type | Description |
---|---|---|
propertyName |
String | The property name (e.g. 'time.timeMode' or 'time.passedBy'). |
value |
Variant | The value to set. |
- Implements:
- See:
-
- br-test/Fixture#doWhen
tear Down()
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.
- Implements: