[ https://jira.codehaus.org/browse/JBEHAVE-770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mauro Talevi updated JBEHAVE-770: --------------------------------- Issue Type: Task (was: Bug) Summary: Ensure behaviour is reproducible in unit tests when retrieving methods from Class.getMethods() (was: Testcases expects order in result from getMethods() ) > Ensure behaviour is reproducible in unit tests when retrieving methods from > Class.getMethods() > ---------------------------------------------------------------------------------------------- > > Key: JBEHAVE-770 > URL: https://jira.codehaus.org/browse/JBEHAVE-770 > Project: JBehave > Issue Type: Task > Components: Core > Environment: Found the issue using Win7(x64) and Java7u2. > Reporter: joachim nilsson > Priority: Minor > Fix For: 3.6.4 > > Attachments: > 0001-testcase-bugfix-Corrected-testcases-that-were-using-.patch > > > Testcases in CompositeStepCandidateBehaviour and StepCandidateBehaviour uses > the resulting list from getMethods() and expected results to be in > declaration order. > According to Javadoc of java.lang.Class.getMethods(): > "Returns an array ... The elements in the array returned are not sorted and > are not in any particular order..." > Correction attached, making use of an extraction method to find the desired > CandidateStep in the test. -- 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