@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @TestTemplate @ExtendWith(value=ParameterizedRepeatedExtension.class) public @interface ParameterizedRepeatedIfExceptionsTest
ParameterizedRepeatedExtension| Modifier and Type | Fields and Description |
|---|---|
static String |
ARGUMENTS_PLACEHOLDER
Placeholder for the complete, comma-separated arguments list of the
current invocation of a
@ParameterizedTest method:
{arguments} |
static String |
CURRENT_REPETITION_PLACEHOLDER
Placeholder for the current repetition count of a
@RepeatedTest
method: {currentRepetition} |
static String |
DEFAULT_DISPLAY_NAME
Default display name pattern for the current invocation of a
@ParameterizedTest method: "[{index}] {arguments}" |
static String |
DISPLAY_NAME_PLACEHOLDER
Placeholder for the display name of a
@ParameterizedTest method: {displayName} |
static String |
INDEX_PLACEHOLDER
Placeholder for the current invocation index of a
@ParameterizedTest
method (1-based): {index} |
static String |
REPEATED_DISPLAY_NAME
Display name pattern for a repeated test
|
static String |
TOTAL_REPETITIONS_PLACEHOLDER
Placeholder for the total number of repetitions of a
@RepeatedTest
method: {totalRepetitions} |
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Throwable>[] |
exceptions
Pool of exceptions
|
int |
minSuccess
Minimum success
|
String |
name
The display name to be used for individual invocations of the
parameterized test; never blank or consisting solely of whitespace.
|
String |
repeatedName
The display name to be used for individual repeated invocations of the
parameterized test; never blank.
|
int |
repeats
Number of repeats
|
long |
suspend
Add break (cooldown) to each tests.
|
public static final String CURRENT_REPETITION_PLACEHOLDER
@RepeatedTest
method: {currentRepetition}public static final String TOTAL_REPETITIONS_PLACEHOLDER
@RepeatedTest
method: {totalRepetitions}public static final String REPEATED_DISPLAY_NAME
@API(status=EXPERIMENTAL,
since="5.3")
public static final String DEFAULT_DISPLAY_NAME
@ParameterizedTest method: "[{index}] {arguments}"
Note that the default pattern does not include the
display name of the
@ParameterizedTest method.
name(),
DISPLAY_NAME_PLACEHOLDER,
INDEX_PLACEHOLDER,
ARGUMENTS_PLACEHOLDERpublic abstract int repeats
Copyright © 2019. All rights reserved.