Class DefaultRepetitionInfo
java.lang.Object
org.junit.jupiter.engine.extension.DefaultRepetitionInfo
- All Implemented Interfaces:
RepetitionInfo
Default implementation of
RepetitionInfo
.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final AtomicInteger
(package private) final int
(package private) final int
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRepetitionInfo
(int currentRepetition, int totalRepetitions, AtomicInteger failureCount, int failureThreshold) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the current repetition of the corresponding@RepeatedTest
method.int
Get the current number of repetitions of the corresponding@RepeatedTest
method that have ended in a failure.int
Get the configured failure threshold of the corresponding@RepeatedTest
method.int
Get the total number of repetitions of the corresponding@RepeatedTest
method.toString()
-
Field Details
-
currentRepetition
final int currentRepetition -
totalRepetitions
final int totalRepetitions -
failureCount
-
failureThreshold
final int failureThreshold
-
-
Constructor Details
-
DefaultRepetitionInfo
DefaultRepetitionInfo(int currentRepetition, int totalRepetitions, AtomicInteger failureCount, int failureThreshold)
-
-
Method Details
-
getCurrentRepetition
public int getCurrentRepetition()Description copied from interface:RepetitionInfo
Get the current repetition of the corresponding@RepeatedTest
method.- Specified by:
getCurrentRepetition
in interfaceRepetitionInfo
-
getTotalRepetitions
public int getTotalRepetitions()Description copied from interface:RepetitionInfo
Get the total number of repetitions of the corresponding@RepeatedTest
method.- Specified by:
getTotalRepetitions
in interfaceRepetitionInfo
- See Also:
-
getFailureCount
public int getFailureCount()Description copied from interface:RepetitionInfo
Get the current number of repetitions of the corresponding@RepeatedTest
method that have ended in a failure.- Specified by:
getFailureCount
in interfaceRepetitionInfo
- See Also:
-
getFailureThreshold
public int getFailureThreshold()Description copied from interface:RepetitionInfo
Get the configured failure threshold of the corresponding@RepeatedTest
method.- Specified by:
getFailureThreshold
in interfaceRepetitionInfo
- See Also:
-
toString
-