Class MethodOrderer.Default

java.lang.Object
org.junit.jupiter.api.MethodOrderer.Default
All Implemented Interfaces:
MethodOrderer
Enclosing interface:
MethodOrderer

@API(status=EXPERIMENTAL, since="6.0") public static final class MethodOrderer.Default extends Object implements MethodOrderer
MethodOrderer that allows to explicitly specify that the default ordering should be applied.

If the "junit.jupiter.testmethod.order.default" is set, specifying this MethodOrderer has the same effect as referencing the configured class directly. Otherwise, it has the same effect as not specifying any MethodOrderer.

This class can be used to reset the MethodOrderer for a @Nested class and its @Nested inner classes, recursively, when a MethodOrderer is configured using @TestMethodOrder on an enclosing class.

Since:
6.0