Methods
add Sub Fixtures()
can Handle Exact Match()
- See:
-
- module:br-test/Fixture#canHandleExactMatch
The TriggerFixture
allows for testing of components that use the ct-alerts/TriggerService
.
The following actions are supported:
module:ct-alerts/testing/TriggerServiceStub#addTrigger
.
To specify the trigger subject condition, include them in a pipe-separated list as follows:
when("triggerservice.addTrigger => '/FX/GBPUSD|rate > 1'");
when("triggerservice.createTriggerRejected => true");
module:ct-alerts/testing/TriggerServiceStub#triggerTrigger
.
For example, the following snippet triggers the first trigger created:
when("triggerservice.triggerTrigger => 0");
module:ct-alerts/testing/TriggerServiceStub#removeTrigger
.
For example, the following snippet removes the first trigger created:
when("triggerservice.removeTrigger => 0");
when("triggerservice.disposeTriggerRejected => true");
module:ct-alerts/testing/TriggerServiceStub#setStatus
, e.g.
when("triggerservice.status => 'UNAVAILABLE'");