public interface ConcurrentEventListener extends Plugin
TestCase events from different
pickles may interleave.
This interface marks an EventListener as capable of
understanding interleaved pickle events.
While running tests in parallel cucumber makes the following guarantees.
1. The event publisher is synchronized. Events are not handled concurrently.
2. For test cases executed on different threads the callbacks registered on the event publisher will be called by different threads. I.e. Thread.currentThread() will return different a different thread for two test cases executed on a different thread (but not necessarily the executing thread).
Event| Modifier and Type | Method and Description |
|---|---|
void |
setEventPublisher(EventPublisher publisher)
Set the event publisher.
|
void setEventPublisher(EventPublisher publisher)
publisher - the event publisherCopyright © 2018. All rights reserved.