Class DefaultClassOrdererContext
- java.lang.Object
-
- org.junit.jupiter.engine.discovery.DefaultClassOrdererContext
-
- All Implemented Interfaces:
ClassOrdererContext
class DefaultClassOrdererContext extends java.lang.Object implements ClassOrdererContext
Default implementation ofClassOrdererContext.- Since:
- 5.8
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<? extends ClassDescriptor>classDescriptorsprivate JupiterConfigurationconfiguration
-
Constructor Summary
Constructors Constructor Description DefaultClassOrdererContext(java.util.List<? extends ClassDescriptor> classDescriptors, JupiterConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<? extends ClassDescriptor>getClassDescriptors()Get the list of class descriptors to order.java.util.Optional<java.lang.String>getConfigurationParameter(java.lang.String key)Get the configuration parameter stored under the specifiedkey.
-
-
-
Field Detail
-
classDescriptors
private final java.util.List<? extends ClassDescriptor> classDescriptors
-
configuration
private final JupiterConfiguration configuration
-
-
Constructor Detail
-
DefaultClassOrdererContext
DefaultClassOrdererContext(java.util.List<? extends ClassDescriptor> classDescriptors, JupiterConfiguration configuration)
-
-
Method Detail
-
getClassDescriptors
public java.util.List<? extends ClassDescriptor> getClassDescriptors()
Description copied from interface:ClassOrdererContextGet the list of class descriptors to order.- Specified by:
getClassDescriptorsin interfaceClassOrdererContext- Returns:
- the list of class descriptors; never
null
-
getConfigurationParameter
public java.util.Optional<java.lang.String> getConfigurationParameter(java.lang.String key)
Description copied from interface:ClassOrdererContextGet 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 interfaceClassOrdererContext- Parameters:
key- the key to look up; nevernullor blank- Returns:
- an
Optionalcontaining the value; nevernullbut potentially empty - See Also:
System.getProperty(String),ConfigurationParameters
-
-