-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
This issue is based on this discussion.
I want to create a test that checks that an event was NOT published. The usecase I try to replicate is that the publisher can be configured to temporarily ignore specific event types (e.g. because the target system is not available). So I am looking for something like this:
scenario.stimulate(() -> collector.poll())
.andWaitAtMost(Duration.ofSeconds(5))
.andWaitForEventOfType(NewJobEvent.class)
.not().toArrive();
//or
scenario.stimulate(() -> collector.poll())
.andWaitAtMost(Duration.ofSeconds(5))
.andWaitForEventOfType(NewJobEvent.class)
.notToArrive();
Metadata
Metadata
Assignees
Labels
No labels