Ensure behaviour is reproducible in unit tests when retrieving methods from Class.getMethods()

Description

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.

Assignee

Unassigned

Reporter

Joachim Nilsson

Labels

None

Components

Fix versions

Priority

Minor
Configure