Constructor
new module:br-presenter /testing /Presentation Model Fixture()
Constructs a PresentationModelFixture
.
Methods
can Handle Property(sProperty)
The PresentationModelFixture handles all valid properties and methods within the presentation model of a presenter component. Nested property nodes in a presentation model can be referenced by dotted notation.
Parameters:
Name | Type | Description |
---|---|---|
sProperty |
String | The property name to check. |
- Implements:
- See:
-
- br-test/Fixture#canHandleProperty
do Given(sProperty, vValue)
This method enables the fixture to set the value on a presentation node or property within the presentation model of a presenter component. In addition, it is also possible to trigger the invocation of a method defined within the presentation model, using the 'invoked' property.
Parameters:
Name | Type | Description |
---|---|---|
sProperty |
String | The property name |
vValue |
Variant | The value to check. |
- Implements:
- See:
-
- br-test/Fixture#doGiven
do Then(sProperty, vValue)
This method enables the fixture to verify the values on the properties of the presentation model of a presenter component, including NodeLists. It is also possible to check the 'invocationCount' on a method within the presentation model.
Parameters:
Name | Type | Description |
---|---|---|
sProperty |
String | The property name |
vValue |
Variant | The value to set. |
- Implements:
- See:
-
- br-test/Fixture#doThen
do When(sProperty, vValue)
This method enables the fixture to set the value on a presentation node or property within the presentation model of a presenter component. In addition, it is also possible to trigger the invocation of a method defined within the presentation model, using the 'invoked' property.
Parameters:
Name | Type | Description |
---|---|---|
sProperty |
String | The property name |
vValue |
Variant | The value to set. |
- Implements:
- See:
-
- br-test/Fixture#doWhen
set Component(oComponent)
This method is called be the module:br-component/testing/ComponentFixture
after
the component is created.
Parameters:
Name | Type | Description |
---|---|---|
oComponent |
module:br-component |
the component instance managed by this ComponentModelFixture. |
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.
- Inherited From:
- Implements: