class DefaultMethodOrdererContext extends java.lang.Object implements MethodOrdererContext
MethodOrdererContext
.Modifier and Type | Field and Description |
---|---|
private JupiterConfiguration |
configuration |
private java.util.List<? extends MethodDescriptor> |
methodDescriptors |
private java.lang.Class<?> |
testClass |
Constructor and Description |
---|
DefaultMethodOrdererContext(java.util.List<? extends MethodDescriptor> methodDescriptors,
java.lang.Class<?> testClass,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.lang.String> |
getConfigurationParameter(java.lang.String key)
Get the configuration parameter stored under the specified
key . |
java.util.List<? extends MethodDescriptor> |
getMethodDescriptors()
Get the list of method descriptors to
order.
|
java.lang.Class<?> |
getTestClass()
Get the test class for this context.
|
java.lang.String |
toString() |
private final java.lang.Class<?> testClass
private final java.util.List<? extends MethodDescriptor> methodDescriptors
private final JupiterConfiguration configuration
DefaultMethodOrdererContext(java.util.List<? extends MethodDescriptor> methodDescriptors, java.lang.Class<?> testClass, JupiterConfiguration configuration)
public final java.lang.Class<?> getTestClass()
MethodOrdererContext
getTestClass
in interface MethodOrdererContext
null
public java.util.List<? extends MethodDescriptor> getMethodDescriptors()
MethodOrdererContext
getMethodDescriptors
in interface MethodOrdererContext
null
public java.util.Optional<java.lang.String> getConfigurationParameter(java.lang.String key)
MethodOrdererContext
key
.
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.
getConfigurationParameter
in interface MethodOrdererContext
key
- the key to look up; never null
or blankOptional
containing the value; never null
but potentially emptySystem.getProperty(String)
,
ConfigurationParameters
public java.lang.String toString()
toString
in class java.lang.Object