[infinispan-issues] [JBoss JIRA] (ISPN-4193) StateSequencer: state machine-based utility for synchronizing multi-threaded tests
Dan Berindei (JIRA)
issues at jboss.org
Wed Aug 20 07:35:29 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei updated ISPN-4193:
-------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 7.0.0.Beta1
(was: 7.0.0.Beta2)
Resolution: Done
> 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
> Security Level: Public(Everyone can see)
> 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.6#6264)
More information about the infinispan-issues
mailing list