Package org.junit.jupiter.api
Interface MethodOrdererContext
-
@API(status=EXPERIMENTAL, since="5.4") public interface MethodOrdererContext
MethodOrdererContext
encapsulates the context in which aMethodOrderer
will be invoked.- Since:
- 5.4
- See Also:
MethodOrderer
,MethodDescriptor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
getConfigurationParameter(String key)
Get the configuration parameter stored under the specifiedkey
.List<? extends MethodDescriptor>
getMethodDescriptors()
Get the list of method descriptors to order.Class<?>
getTestClass()
Get the test class for this context.
-
-
-
Method Detail
-
getTestClass
Class<?> getTestClass()
Get the test class for this context.- Returns:
- the test class; never
null
-
getMethodDescriptors
List<? extends MethodDescriptor> getMethodDescriptors()
Get the list of method descriptors to order.- Returns:
- the list of method descriptors; never
null
-
getConfigurationParameter
Optional<String> getConfigurationParameter(String key)
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.- Parameters:
key
- the key to look up; nevernull
or blank- Returns:
- an
Optional
containing the value; nevernull
but potentially empty - See Also:
System.getProperty(String)
,ConfigurationParameters
-
-