[infinispan-issues] [JBoss JIRA] (ISPN-4193) StateSequencer: state machine-based utility for synchronizing multi-threaded tests
Pedro Ruivo (JIRA)
issues at jboss.org
Tue May 13 18:13:08 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the infinispan-issues
mailing list