Package io.github.artsok
Annotation Type ParameterizedRepeatedIfExceptionsTest
-
@Target(METHOD) @Retention(RUNTIME) @TestTemplate @ExtendWith(ParameterizedRepeatedExtension.class) public @interface ParameterizedRepeatedIfExceptionsTest
Annotation which you can put to parameterized test method. Customize the number of repeats and set for what exception you want handled. By default set Throwable.class. All logic of this extension atParameterizedRepeatedExtension- Author:
- Artem Sokovets
-
-
Field Summary
Fields Modifier and Type Fields Description static StringARGUMENTS_PLACEHOLDERPlaceholder for the complete, comma-separated arguments list of the current invocation of a@ParameterizedTestmethod:{arguments}static StringCURRENT_REPETITION_PLACEHOLDERPlaceholder for the current repetition count of a@RepeatedTestmethod:{currentRepetition}static StringDEFAULT_DISPLAY_NAMEDefault display name pattern for the current invocation of a@ParameterizedTestmethod: "[{index}] {arguments}"static StringDISPLAY_NAME_PLACEHOLDERPlaceholder for the display name of a@ParameterizedTestmethod:{displayName}static StringINDEX_PLACEHOLDERPlaceholder for the current invocation index of a@ParameterizedTestmethod (1-based):{index}static StringREPEATED_DISPLAY_NAMEDisplay name pattern for a repeated teststatic StringTOTAL_REPETITIONS_PLACEHOLDERPlaceholder for the total number of repetitions of a@RepeatedTestmethod:{totalRepetitions}
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends Throwable>[]exceptionsPool of exceptionsintminSuccessMinimum successStringnameThe display name to be used for individual invocations of the parameterized test; never blank or consisting solely of whitespace.StringrepeatedNameThe display name to be used for individual repeated invocations of the parameterized test; never blank.intrepeatsNumber of repeatslongsuspendAdd break (cooldown) to each tests.
-
-
-
Field Detail
-
CURRENT_REPETITION_PLACEHOLDER
static final String CURRENT_REPETITION_PLACEHOLDER
Placeholder for the current repetition count of a@RepeatedTestmethod:{currentRepetition}
-
-
-
TOTAL_REPETITIONS_PLACEHOLDER
static final String TOTAL_REPETITIONS_PLACEHOLDER
Placeholder for the total number of repetitions of a@RepeatedTestmethod:{totalRepetitions}
-
-
-
REPEATED_DISPLAY_NAME
static final String REPEATED_DISPLAY_NAME
Display name pattern for a repeated test
-
-
-
DEFAULT_DISPLAY_NAME
@API(status=EXPERIMENTAL, since="5.3") static final String DEFAULT_DISPLAY_NAMEDefault display name pattern for the current invocation of a@ParameterizedTestmethod: "[{index}] {arguments}"Note that the default pattern does not include the display name of the
@ParameterizedTestmethod.- Since:
- 5.3
- See Also:
name(),DISPLAY_NAME_PLACEHOLDER,INDEX_PLACEHOLDER,ARGUMENTS_PLACEHOLDER
-
-