Package org.junit.jupiter.params
Class ParameterizedInvocationConstants
- java.lang.Object
-
- org.junit.jupiter.params.ParameterizedInvocationConstants
-
@API(status=MAINTAINED, since="5.13") public class ParameterizedInvocationConstants extends java.lang.ObjectConstants for the use with the@ParameterizedClassand@ParameterizedTestannotations.- Since:
- 5.13
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringARGUMENT_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}.static java.lang.StringARGUMENT_SET_NAME_PLACEHOLDERPlaceholder for the name of the argument set for the current invocation of a@ParameterizedTestmethod:{argumentSetName}.static java.lang.StringARGUMENTS_PLACEHOLDERPlaceholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTestmethod:{arguments}static java.lang.StringARGUMENTS_WITH_NAMES_PLACEHOLDERPlaceholder for the complete, comma-separated named arguments list of the current invocation of a@ParameterizedTestmethod:{argumentsWithNames}static java.lang.StringDEFAULT_DISPLAY_NAMEDefault display name pattern for the current invocation of a@ParameterizedTestmethod: "[{index}] {argumentSetNameOrArgumentsWithNames}"static java.lang.StringDISPLAY_NAME_PLACEHOLDERPlaceholder for the display name of a@ParameterizedTestmethod:{displayName}static java.lang.StringINDEX_PLACEHOLDERPlaceholder for the current invocation index of a@ParameterizedTestmethod (1-based):{index}
-
Constructor Summary
Constructors Modifier Constructor Description privateParameterizedInvocationConstants()
-
-
-
Field Detail
-
DISPLAY_NAME_PLACEHOLDER
public static final java.lang.String DISPLAY_NAME_PLACEHOLDER
Placeholder for the display name of a@ParameterizedTestmethod:{displayName}- Since:
- 5.3
- See Also:
ParameterizedClass.name(),ParameterizedTest.name(), Constant Field Values
-
INDEX_PLACEHOLDER
public static final java.lang.String INDEX_PLACEHOLDER
Placeholder for the current invocation index of a@ParameterizedTestmethod (1-based):{index}- Since:
- 5.3
- See Also:
ParameterizedClass.name(),ParameterizedTest.name(),DEFAULT_DISPLAY_NAME, Constant Field Values
-
ARGUMENTS_PLACEHOLDER
public static final java.lang.String ARGUMENTS_PLACEHOLDER
Placeholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTestmethod:{arguments}- Since:
- 5.3
- See Also:
ParameterizedClass.name(),ParameterizedTest.name(), Constant Field Values
-
ARGUMENTS_WITH_NAMES_PLACEHOLDER
public static final java.lang.String 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.
-
ARGUMENT_SET_NAME_PLACEHOLDER
@API(status=MAINTAINED, since="5.13.3") public static final java.lang.String ARGUMENT_SET_NAME_PLACEHOLDERPlaceholder 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().
-
ARGUMENT_SET_NAME_OR_ARGUMENTS_WITH_NAMES_PLACEHOLDER
@API(status=MAINTAINED, since="5.13.3") public static final java.lang.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}.
-
DEFAULT_DISPLAY_NAME
public static final java.lang.String 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.
-
-