Module org.junit.jupiter.engine
Class DefaultRepetitionInfo
- java.lang.Object
-
- org.junit.jupiter.engine.extension.DefaultRepetitionInfo
-
- All Implemented Interfaces:
RepetitionInfo
class DefaultRepetitionInfo extends java.lang.Object implements RepetitionInfo
Default implementation ofRepetitionInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
currentRepetition
(package private) java.util.concurrent.atomic.AtomicInteger
failureCount
(package private) int
failureThreshold
(package private) int
totalRepetitions
-
Constructor Summary
Constructors Constructor Description DefaultRepetitionInfo(int currentRepetition, int totalRepetitions, java.util.concurrent.atomic.AtomicInteger failureCount, int failureThreshold)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentRepetition()
Get the current repetition of the corresponding@RepeatedTest
method.int
getFailureCount()
Get the current number of repetitions of the corresponding@RepeatedTest
method that have ended in a failure.int
getFailureThreshold()
Get the configured failure threshold of the corresponding@RepeatedTest
method.int
getTotalRepetitions()
Get the total number of repetitions of the corresponding@RepeatedTest
method.java.lang.String
toString()
-
-
-
Method Detail
-
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:
RepeatedTest.value()
-
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:
RepetitionInfo.getFailureThreshold()
-
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:
RepeatedTest.failureThreshold()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-