Methods
add Sub Fixtures()
can Handle Exact Match()
- See:
-
- module:br-test/Fixture#canHandleExactMatch
The NotificationFixture
allows for testing of components that use the module:ct-alerts/NotificationService
.
The following actions are supported:
module:ct-alerts/testing/NotificationServiceStub#createNotification
.
To specify the notification source and timestamp (required), include them in a pipe-separated list, followed by an additional field as follows:
given("notificationservice.createNotification = 'TRIGGERED|1428571428|a:5'");
module:ct-alerts/testing/NotificationServiceStub#removeNotification
.
For example, the following snippet removes the first notification created:
when("notificationservice.removeNotification => 0");
when("notificationservice.dismissRejected => true");
module:ct-alerts/testing/NotificationServiceStub#setStatus
, e.g.
when("notificationservice.status => 'UNAVAILABLE'");