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 StringPlaceholder for eitherARGUMENT_SET_NAME_PLACEHOLDERorARGUMENTS_WITH_NAMES_PLACEHOLDER, depending on whether the current set of arguments was created viaargumentSet():{argumentSetNameOrArgumentsWithNames}.static final StringPlaceholder for the name of the argument set for the current invocation of a@ParameterizedTestmethod:{argumentSetName}.static final StringPlaceholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTestmethod:{arguments}static final StringPlaceholder for the complete, comma-separated named arguments list of the current invocation of a@ParameterizedTestmethod:{argumentsWithNames}static final StringDefault display name pattern for the current invocation of a@ParameterizedTestmethod: "[{index}] {argumentSetNameOrArgumentsWithNames}"static final Stringstatic final StringPlaceholder for the current invocation index of a@ParameterizedTestmethod (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@ParameterizedTestmethod (1-based):{index}- Since:
- 5.3
- See Also:
-
ARGUMENTS_PLACEHOLDER
Placeholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTestmethod:{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@ParameterizedTestmethod:{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-parameterscommand 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@ParameterizedTestmethod:{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=MAINTAINED, since="5.13.3") public static final String ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDERPlaceholder for eitherARGUMENT_SET_NAME_PLACEHOLDERorARGUMENTS_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@ParameterizedTestmethod: "[{index}] {argumentSetNameOrArgumentsWithNames}"Note that the default pattern does not include the display name of the
@ParameterizedTestmethod.- Since:
- 5.3
- See Also:
-