Annotation Type ParameterizedRepeatedIfExceptionsTest

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element 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.
    • Field Detail

      • CURRENT_REPETITION_PLACEHOLDER

        static final String CURRENT_REPETITION_PLACEHOLDER
        Placeholder for the current repetition count of a @RepeatedTest method: {currentRepetition}
      • TOTAL_REPETITIONS_PLACEHOLDER

        static final String TOTAL_REPETITIONS_PLACEHOLDER
        Placeholder for the total number of repetitions of a @RepeatedTest method: {totalRepetitions}
      • DISPLAY_NAME_PLACEHOLDER

        @API(status=EXPERIMENTAL,
             since="5.3")
        static final String DISPLAY_NAME_PLACEHOLDER
        Placeholder for the display name of a @ParameterizedTest method: {displayName}
        Since:
        5.3
        See Also:
        name()
      • INDEX_PLACEHOLDER

        @API(status=EXPERIMENTAL,
             since="5.3")
        static final String INDEX_PLACEHOLDER
        Placeholder for the current invocation index of a @ParameterizedTest method (1-based): {index}
        Since:
        5.3
        See Also:
        name()
      • ARGUMENTS_PLACEHOLDER

        @API(status=EXPERIMENTAL,
             since="5.3")
        static final String ARGUMENTS_PLACEHOLDER
        Placeholder for the complete, comma-separated arguments list of the current invocation of a @ParameterizedTest method: {arguments}
        Since:
        5.3
        See Also:
        name()
    • Element Detail

      • name

        String name
        The display name to be used for individual invocations of the parameterized test; never blank or consisting solely of whitespace.
        Returns:
        String
        Default:
        "[{index}] {arguments}"
      • repeatedName

        String repeatedName
        The display name to be used for individual repeated invocations of the parameterized test; never blank.
        Returns:
        String
        Default:
        " (Repeated if the test failed {currentRepetition} of {totalRepetitions})"
      • exceptions

        Class<? extends Throwable>[] exceptions
        Pool of exceptions
        Returns:
        Exception that handlered
        Default:
        {java.lang.Throwable.class}
      • repeats

        int repeats
        Number of repeats
        Returns:
        N-times repeat test if it failed
        Default:
        1
      • minSuccess

        int minSuccess
        Minimum success
        Returns:
        After n-times of passed tests will disable all remaining repeats.
        Default:
        1
      • suspend

        long suspend
        Add break (cooldown) to each tests. It matters, when you get some infrastructure problems and you want to run your tests through timeout.
        Returns:
        the length of time to sleep in milliseconds
        Default:
        0L