Configuration menu Browse the repository at this point in the history
Ensure[@Nested](/junit-team/junit-framework/commit/a866c0169d5254a67b561a652c757b24f45859f0)classes are executed after sibling test methods (#4603) In order to validate them, classpath scanning was changed to find them in 5.13.0. However, that caused @Nested classes to be added to their parent descriptors before their sibling test methods. This made the order of execution in classes containing nested test classes dependent on how they were discovered unless a MethodOrderer was configured in which case MethodOrderingVisitor ensured test methods came before @Nested test classes on the same level. This commit changes MethodOrderingVisitor to also ensure this ordering constraint in case no MethodOrderer is configured. Resolves #4600. (cherry picked from commit d0d6071) Configuration menu Browse the repository at this point in the history
Configuration menu Browse the repository at this point in the history