Module org.junit.jupiter.params
Package org.junit.jupiter.params
Class ParameterizedInvocationConstants
java.lang.Object
org.junit.jupiter.params.ParameterizedInvocationConstants
Constants for the use with the
@ParameterizedClass
and
@ParameterizedTest
annotations.- Since:
- 5.13
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Placeholder for eitherARGUMENT_SET_NAME_PLACEHOLDER
orARGUMENTS_WITH_NAMES_PLACEHOLDER
, depending on whether the current set of arguments was created viaargumentSet()
:{argumentSetNameOrArgumentsWithNames}
.static final String
Placeholder for the name of the argument set for the current invocation of a@ParameterizedTest
method:{argumentSetName}
.static final String
Placeholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTest
method:{arguments}
static final String
Placeholder for the complete, comma-separated named arguments list of the current invocation of a@ParameterizedTest
method:{argumentsWithNames}
static final String
Default display name pattern for the current invocation of a@ParameterizedTest
method: "[{index}] {argumentSetNameOrArgumentsWithNames}"static final String
static final String
Placeholder for the current invocation index of a@ParameterizedTest
method (1-based):{index}
-
Method Summary
-
Field Details
-
DISPLAY_NAME_PLACEHOLDER
- Since:
- 5.3
- See Also:
-
INDEX_PLACEHOLDER
Placeholder for the current invocation index of a@ParameterizedTest
method (1-based):{index}
- Since:
- 5.3
- See Also:
-
ARGUMENTS_PLACEHOLDER
Placeholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTest
method:{arguments}
- Since:
- 5.3
- See Also:
-
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
Parameter.getName()
API if the byte code contains parameter names — for example, if the code was compiled with the-parameters
command line argument forjavac
.- Since:
- 5.6
- See Also:
-
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()
.- Since:
- 5.11
- See Also:
-
ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
@API(status=EXPERIMENTAL, since="5.11") public static final String ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDERPlaceholder for eitherARGUMENT_SET_NAME_PLACEHOLDER
orARGUMENTS_WITH_NAMES_PLACEHOLDER
, depending on whether the current set of arguments was created viaargumentSet()
:{argumentSetNameOrArgumentsWithNames}
.- Since:
- 5.11
- See Also:
-
DEFAULT_DISPLAY_NAME
Default display name pattern for the current invocation of a@ParameterizedTest
method: "[{index}] {argumentSetNameOrArgumentsWithNames}"Note that the default pattern does not include the display name of the
@ParameterizedTest
method.- Since:
- 5.3
- See Also:
-