StepsBehaviour test broken for OpenJDK 7

Description

Unit test StepsBehaviour.shouldReportFailuresInBeforeAndAfterMethods is broken when run on JDK 7 (see stacktrace attached). With JDK 6 this error doesn't occur.

What actually breaks the test is that methods annotated with @BeforeScenario are picked in different order for the two JDK versions. This is caused by the fact that java.lang.Class.getMethods() returns methods in no particular order as clearly stated in its javadoc and probably its implementation has been changed.

The question is whether it's enough just to fix the test to enforce the order or this issue affects the framework more deeply and additional measures are needed.

Assignee

Unassigned

Reporter

Volodymyr Sobotovych

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure