Top Description Fields Constructors Methods
org.junit.jupiter.params

public Class ParameterizedInvocationConstants

extends Object
Class Inheritance
Annotations
@API
status:MAINTAINED
since:5.13
Static Imports
org.apiguardian.api.API.Status.MAINTAINED

Constants for the use with the @ParameterizedClass and @ParameterizedTest annotations.
Since
5.13

Field Summary

Modifier and TypeField and Description
public static final String
ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER

Placeholder for either ARGUMENT_SET_NAME_PLACEHOLDER or ARGUMENTS_WITH_NAMES_PLACEHOLDER, depending on whether the current set of arguments was created via argumentSet(): {argumentSetNameOrArgumentsWithNames}.

public static final String
ARGUMENT_SET_NAME_PLACEHOLDER

Placeholder for the name of the argument set for the current invocation of a @ParameterizedTest method: {argumentSetName}.

public static final String
ARGUMENTS_PLACEHOLDER

Placeholder for the complete, comma-separated arguments list of the current invocation of a @ParameterizedTest method: {arguments}

public static final String
ARGUMENTS_WITH_NAMES_PLACEHOLDER

Placeholder for the complete, comma-separated named arguments list of the current invocation of a @ParameterizedTest method: {argumentsWithNames}

Argument names will be retrieved via the java.lang.reflect.Parameter#getName() API if the byte code contains parameter names — for example, if the code was compiled with the -parameters command line argument for javac.

public static final String
DEFAULT_DISPLAY_NAME

Default display name pattern for the current invocation of a @ParameterizedTest method:

Note that the default pattern does not include the display name of the @ParameterizedTest method.

public static final String
DISPLAY_NAME_PLACEHOLDER

Placeholder for the display name of a @ParameterizedTest method: {displayName}

public static final String
INDEX_PLACEHOLDER

Placeholder for the current invocation index of a @ParameterizedTest method (1-based): {index}

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDERback to summary
public static final String ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER

Placeholder for either ARGUMENT_SET_NAME_PLACEHOLDER or ARGUMENTS_WITH_NAMES_PLACEHOLDER, depending on whether the current set of arguments was created via argumentSet(): {argumentSetNameOrArgumentsWithNames}.

Annotations
@API
status:MAINTAINED
since:5.13.3
Since
5.11
See Also
ParameterizedClass#name(), ParameterizedTest#name(), ARGUMENT_SET_NAME_PLACEHOLDER, ARGUMENTS_WITH_NAMES_PLACEHOLDER, DEFAULT_DISPLAY_NAME, org.junit.jupiter.params.provider.Arguments#argumentSet(String, Object...)
ARGUMENT_SET_NAME_PLACEHOLDERback to summary
public static final String ARGUMENT_SET_NAME_PLACEHOLDER

Placeholder for the name of the argument set for the current invocation of a @ParameterizedTest method: {argumentSetName}.

This placeholder can be used when the current set of arguments was created via argumentSet().

Annotations
@API
status:MAINTAINED
since:5.13.3
Since
5.11
See Also
ParameterizedClass#name(), ParameterizedTest#name(), ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER, org.junit.jupiter.params.provider.Arguments#argumentSet(String, Object...)
ARGUMENTS_PLACEHOLDERback to summary
public static final String ARGUMENTS_PLACEHOLDER

Placeholder for the complete, comma-separated arguments list of the current invocation of a @ParameterizedTest method: {arguments}

Since
5.3
See Also
ParameterizedClass#name(), ParameterizedTest#name()
ARGUMENTS_WITH_NAMES_PLACEHOLDERback to summary
public static final String ARGUMENTS_WITH_NAMES_PLACEHOLDER

Placeholder for the complete, comma-separated named arguments list of the current invocation of a @ParameterizedTest method: {argumentsWithNames}

Argument names will be retrieved via the java.lang.reflect.Parameter#getName() API if the byte code contains parameter names — for example, if the code was compiled with the -parameters command line argument for javac.

Since
5.6
See Also
ParameterizedClass#name(), ParameterizedTest#name(), ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
DEFAULT_DISPLAY_NAMEback to summary
public static final String DEFAULT_DISPLAY_NAME

Default display name pattern for the current invocation of a @ParameterizedTest method:

Note that the default pattern does not include the display name of the @ParameterizedTest method.

Since
5.3
See Also
ParameterizedClass#name(), ParameterizedTest#name(), DISPLAY_NAME_PLACEHOLDER, INDEX_PLACEHOLDER, ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
DISPLAY_NAME_PLACEHOLDERback to summary
public static final String DISPLAY_NAME_PLACEHOLDER

Placeholder for the display name of a @ParameterizedTest method: {displayName}

Since
5.3
See Also
ParameterizedClass#name(), ParameterizedTest#name()
INDEX_PLACEHOLDERback to summary
public static final String INDEX_PLACEHOLDER

Placeholder for the current invocation index of a @ParameterizedTest method (1-based): {index}

Since
5.3
See Also
ParameterizedClass#name(), ParameterizedTest#name(), DEFAULT_DISPLAY_NAME

Constructor Detail

ParameterizedInvocationConstantsback to summary
private ParameterizedInvocationConstants()