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 JupiterConfigurationprivate final List<? extends MethodDescriptor>private final Class<?> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultMethodOrdererContext(Class<?> testClass, List<? extends MethodDescriptor> methodDescriptors, 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(Class<?> testClass, List<? extends MethodDescriptor> methodDescriptors, JupiterConfiguration configuration)
-
-
Method Details
-
getTestClass
Description copied from interface:MethodOrdererContextGet the test class for this context.- Specified by:
getTestClassin interfaceMethodOrdererContext- Returns:
- the test class; never
null
-
getMethodDescriptors
Description copied from interface:MethodOrdererContextGet the list of method descriptors to order.- Specified by:
getMethodDescriptorsin interfaceMethodOrdererContext- Returns:
- the list of method descriptors; never
null
-
getConfigurationParameter
Description copied from interface:MethodOrdererContextGet the configuration parameter stored under the specifiedkey.If no such key is present in the
ConfigurationParametersfor 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:
getConfigurationParameterin interfaceMethodOrdererContext- Parameters:
key- the key to look up; nevernullor blank- Returns:
- an
Optionalcontaining the value; nevernullbut potentially empty - See Also:
-
toString
-