Testing scheduled event cancellation?

Suppose I have a saga that does the following:

  1. Schedule event A at time X
  2. Schedule event B at time Y
  3. In an event handler, cancel event B

How can I write a test that verifies event B was really cancelled? There are test fixture methods expectScheduledEvent() and expectNoScheduledEvents() but I don’t see a good way to test for the absence of a specific scheduled event while still allowing others.

-Steve

Hi Steven,

sounds like a valid question/feature request.
Looking at the API, I think there is a generic method allowing to match against all available deadlines is missing. That would allow for basically all types of verification.

Would you like to file a feature request in the issue tracker?

Cheers,

Allard