[infinispan-issues] [JBoss JIRA] (ISPN-4193) StateSequencer: state machine-based utility for synchronizing multi-threaded tests

Dan Berindei (JIRA) issues at jboss.org
Tue Apr 8 12:04:15 EDT 2014


Dan Berindei created ISPN-4193:
----------------------------------

             Summary: 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.Alpha4


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}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list