Constructor
new module:caplin/testing/DataSubscriptionFixture()
- Implements:
Methods
-
addNamedValueMap(name, values)
-
This method enables a FixtureFactory to register a set of data update identifiers and corresponding maps of mock field data with this DataSubscriptionFixture. Tests using the fixture to send mock data updates are able to refer to update data using property value 'Subject_name|Data_update_identifier'.
Parameters:
Name Type Description name
String the data update identifier. values
Map the update data map from field names to field values. -
canHandleProperty(propertyName)
-
DataSubscriptionFixture can handle the properties 'dataUpdateReceived', 'dataStatusChanged', 'subjectRequested' and 'subjectNotRequested'.
Parameters:
Name Type Description propertyName
String The property to check. - See:
-
- module:caplin/testing/Fixture#canHandleProperty
-
doGiven()
-
- See:
-
- module:caplin/testing/Fixture#doGiven
-
doThen()
-
- See:
-
- module:caplin/testing/Fixture#doThen
-
doWhen()
-
- See:
-
- module:caplin/testing/Fixture#doWhen