]
Pedro Ruivo updated ISPN-4193:
------------------------------
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Alpha4)
StateSequencer: state machine-based utility for synchronizing
multi-threaded tests
----------------------------------------------------------------------------------
Key: ISPN-4193
URL:
https://issues.jboss.org/browse/ISPN-4193
Project: Infinispan
Issue Type: Feature Request
Components: Test Suite - Core
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 7.0.0.Beta1
I've previously written a {{CheckPoint}} class for the same purpose, but while the
logs are a little clearer, it's still pretty hard to reason about the expected
ordering of events with a CheckPoint-based test.
StateSequencer-based tests should make it clear what the expected order of states should
be from the beginning of the test:
{code:java}
sequencer.logicalThread("t1", "t1:block", "t1:resume");
sequencer.logicalThread("t2", "t2:do_stuff");
sequencer.order("t1:block", "t2:do_stuff", "t1:resume");
{code}