Top Description Fields Constructors Methods
org.junit.jupiter.engine.discovery

pack-priv Class DefaultMethodOrdererContext

extends Object
implements MethodOrdererContext
Class Inheritance
All Implemented Interfaces
org.junit.jupiter.api.MethodOrdererContext
Imports
java.util.List, .Optional, org.junit.jupiter.api.MethodDescriptor, .MethodOrdererContext, org.junit.jupiter.engine.config.JupiterConfiguration, org.junit.platform.commons.util.ToStringBuilder

Default implementation of MethodOrdererContext.
Since
5.4

Field Summary

Modifier and TypeField and Description
private final JupiterConfiguration
private final List<? extends MethodDescriptor>
private final Class<?>

Constructor Summary

AccessConstructor and Description
pack-priv
DefaultMethodOrdererContext(Class<?> testClass, List<? extends MethodDescriptor> methodDescriptors, JupiterConfiguration configuration)

Method Summary

Modifier and TypeMethod and Description
public Optional<String>
getConfigurationParameter(String
the key to look up; never null or blank
key
)

Implements org.junit.jupiter.api.MethodOrdererContext.getConfigurationParameter.

Get the configuration parameter stored under the specified key.
public List<? extends MethodDescriptor>
public final Class<?>
getTestClass()

Implements org.junit.jupiter.api.MethodOrdererContext.getTestClass.

Get the test class for this context.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

configurationback to summary
private final JupiterConfiguration configuration
methodDescriptorsback to summary
private final List<? extends MethodDescriptor> methodDescriptors
testClassback to summary
private final Class<?> testClass

Constructor Detail

DefaultMethodOrdererContextback to summary
pack-priv DefaultMethodOrdererContext(Class<?> testClass, List<? extends MethodDescriptor> methodDescriptors, JupiterConfiguration configuration)

Method Detail

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

Implements org.junit.jupiter.api.MethodOrdererContext.getConfigurationParameter.

Doc from org.junit.jupiter.api.MethodOrdererContext.getConfigurationParameter.

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

Annotations
@Override
getMethodDescriptorsback to summary
public List<? extends MethodDescriptor> getMethodDescriptors()

Implements org.junit.jupiter.api.MethodOrdererContext.getMethodDescriptors.

Doc from org.junit.jupiter.api.MethodOrdererContext.getMethodDescriptors.

Get the list of method descriptors to order.

Returns:List<? extends MethodDescriptor>

the list of method descriptors; never null

Annotations
@Override
getTestClassback to summary
public final Class<?> getTestClass()

Implements org.junit.jupiter.api.MethodOrdererContext.getTestClass.

Doc from org.junit.jupiter.api.MethodOrdererContext.getTestClass.

Get the test class for this context.

Returns:Class<?>

the test class; never null

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override