Class DefaultMethodOrdererContext
java.lang.Object
org.junit.jupiter.engine.discovery.DefaultMethodOrdererContext
- All Implemented Interfaces:
MethodOrdererContext
Default implementation of
MethodOrdererContext
.- Since:
- 5.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JupiterConfiguration
private final List
<? extends MethodDescriptor> private final Class
<?> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMethodOrdererContext
(List<? extends MethodDescriptor> methodDescriptors, Class<?> testClass, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionGet the configuration parameter stored under the specifiedkey
.List
<? extends MethodDescriptor> Get the list of method descriptors to order.final Class
<?> Get the test class for this context.toString()
-
Field Details
-
testClass
-
methodDescriptors
-
configuration
-
-
Constructor Details
-
DefaultMethodOrdererContext
DefaultMethodOrdererContext(List<? extends MethodDescriptor> methodDescriptors, Class<?> testClass, JupiterConfiguration configuration)
-
-
Method Details
-
getTestClass
Description copied from interface:MethodOrdererContext
Get the test class for this context.- Specified by:
getTestClass
in interfaceMethodOrdererContext
- Returns:
- the test class; never
null
-
getMethodDescriptors
Description copied from interface:MethodOrdererContext
Get the list of method descriptors to order.- Specified by:
getMethodDescriptors
in interfaceMethodOrdererContext
- Returns:
- the list of method descriptors; never
null
-
getConfigurationParameter
Description copied from interface:MethodOrdererContext
Get the configuration parameter stored under the specifiedkey
.If no such key is present in the
ConfigurationParameters
for the JUnit Platform, an attempt will be made to look up the value as a JVM system property. If no such system property exists, an attempt will be made to look up the value in the JUnit Platform properties file.- Specified by:
getConfigurationParameter
in interfaceMethodOrdererContext
- Parameters:
key
- the key to look up; nevernull
or blank- Returns:
- an
Optional
containing the value; nevernull
but potentially empty - See Also:
-
toString
-