[
https://jira.codehaus.org/browse/JBEHAVE-744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mauro Talevi resolved JBEHAVE-744.
----------------------------------
Resolution: Fixed
Pulled patch with thanks.
> Unit test can fail due to random list ordering
> ----------------------------------------------
>
> Key: JBEHAVE-744
> URL: https://jira.codehaus.org/browse/JBEHAVE-744
> Project: JBehave
> Issue Type: Test
> Components: Core
> Affects Versions: 3.5.4
> Environment: jbehave 3.6-snapshot, windows vista, java 1.6.0-31
> Reporter: Alexander Lehmann
> Priority: Minor
> Fix For: 3.6
>
>
> Unit test shouldMatchCompositeStepsAndCreateComposedNestedSteps fails for me,
> this is due to some environment difference either with the java version,
> class loader or something like that, because the List returned by
> steps.listCandidates is not necessarily ordered according to the order of the
> methods in the steps class.
> When I run the test in Eclipse debugger, the order is as expected, when I run
> the test normal in maven or in Eclipse, it fails since the expected step is
> at the end of the list.
> I have changed the unit test to look for the correct step, this way the test
> should always pass.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email