Module org.junit.jupiter.engine
Class DefaultClassOrdererContext
java.lang.Object
org.junit.jupiter.engine.discovery.DefaultClassOrdererContext
- All Implemented Interfaces:
ClassOrdererContext
Default implementation of
ClassOrdererContext
.- Since:
- 5.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<? extends ClassDescriptor>
private final JupiterConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassOrdererContext
(List<? extends ClassDescriptor> classDescriptors, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends ClassDescriptor>
Get the list of class descriptors to order.Get the configuration parameter stored under the specifiedkey
.
-
Field Details
-
classDescriptors
-
configuration
-
-
Constructor Details
-
DefaultClassOrdererContext
DefaultClassOrdererContext(List<? extends ClassDescriptor> classDescriptors, JupiterConfiguration configuration)
-
-
Method Details
-
getClassDescriptors
Description copied from interface:ClassOrdererContext
Get the list of class descriptors to order.- Specified by:
getClassDescriptors
in interfaceClassOrdererContext
- Returns:
- the list of class descriptors; never
null
-
getConfigurationParameter
Description copied from interface:ClassOrdererContext
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 interfaceClassOrdererContext
- Parameters:
key
- the key to look up; nevernull
or blank- Returns:
- an
Optional
containing the value; nevernull
but potentially empty - See Also:
-