@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @TestTemplate @ExtendWith(value=RepeatIfExceptionsExtension.class) public @interface RepeatedIfExceptionsTest
| Modifier and Type | Fields and Description |
|---|---|
static String |
CURRENT_REPETITION_PLACEHOLDER
Placeholder for the current repetition count of a
@RepeatedTest
method: {currentRepetition} |
static String |
DISPLAY_NAME_PLACEHOLDER
Placeholder for the display name of
a
@RepeatedTest method: {displayName} |
static String |
LONG_DISPLAY_NAME
Long display name pattern for a repeated test: "{displayName} :: Repetition {currentRepetition} of {totalRepetitions}"
|
static String |
SHORT_DISPLAY_NAME
Short display name pattern for a repeated test: "Repetition {currentRepetition} of {totalRepetitions}"
|
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
Display name for test method
|
int |
repeats
Number of repeats
|
long |
suspend
Add break (cooldown) to each tests.
|
public static final String DISPLAY_NAME_PLACEHOLDER
@RepeatedTest method: {displayName}public static final String CURRENT_REPETITION_PLACEHOLDER
@RepeatedTest
method: {currentRepetition}public static final String TOTAL_REPETITIONS_PLACEHOLDER
@RepeatedTest
method: {totalRepetitions}public static final String SHORT_DISPLAY_NAME
public static final String LONG_DISPLAY_NAME
DISPLAY_NAME_PLACEHOLDER,
SHORT_DISPLAY_NAMEpublic abstract int repeats
public abstract int minSuccess
public abstract long suspend
public abstract String name
Copyright © 2019. All rights reserved.