Top Description Methods
org.junit.jupiter.api

public Interface MethodOrdererContext

Annotations
@API
status:STABLE
since:5.7
Static Imports
org.apiguardian.api.API.Status.STABLE

MethodOrdererContext encapsulates the context in which a MethodOrderer will be invoked.
Since
5.4
See Also
MethodOrderer, MethodDescriptor

Method Summary

Modifier and TypeMethod and Description
public Optional<String>

Returns:

an Optional containing the value; never null but potentially empty
getConfigurationParameter
(String
the key to look up; never null or blank
key
)

Get the configuration parameter stored under the specified key.

public List<? extends MethodDescriptor>

Returns:

the list of method descriptors; never null
getMethodDescriptors
()

Get the list of method descriptors to order.

public Class<?>

Returns:

the test class; never null
getTestClass
()

Get the test class for this context.

Method Detail

getConfigurationParameterback to summary
public Optional<String> getConfigurationParameter(String key)

Get the configuration parameter stored under the specified 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.

Parameters
key:String

the key to look up; never null or blank

Returns:Optional<String>

an Optional containing the value; never null but potentially empty

See Also
System#getProperty(String), org.junit.platform.engine.ConfigurationParameters
getMethodDescriptorsback to summary
public List<? extends MethodDescriptor> getMethodDescriptors()

Get the list of method descriptors to order.

Returns:List<? extends MethodDescriptor>

the list of method descriptors; never null

getTestClassback to summary
public Class<?> getTestClass()

Get the test class for this context.

Returns:Class<?>

the test class; never null