class DefaultRepetitionInfo extends java.lang.Object implements RepetitionInfo
RepetitionInfo.| Modifier and Type | Field and Description |
|---|---|
(package private) int |
currentRepetition |
(package private) java.util.concurrent.atomic.AtomicInteger |
failureCount |
(package private) int |
failureThreshold |
(package private) int |
totalRepetitions |
| Constructor and Description |
|---|
DefaultRepetitionInfo(int currentRepetition,
int totalRepetitions,
java.util.concurrent.atomic.AtomicInteger failureCount,
int failureThreshold) |
| Modifier and Type | Method and 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() |
final int currentRepetition
final int totalRepetitions
final java.util.concurrent.atomic.AtomicInteger failureCount
final int failureThreshold
DefaultRepetitionInfo(int currentRepetition,
int totalRepetitions,
java.util.concurrent.atomic.AtomicInteger failureCount,
int failureThreshold)
public int getCurrentRepetition()
RepetitionInfo@RepeatedTest method.getCurrentRepetition in interface RepetitionInfopublic int getTotalRepetitions()
RepetitionInfo@RepeatedTest method.getTotalRepetitions in interface RepetitionInfoRepeatedTest.value()public int getFailureCount()
RepetitionInfo@RepeatedTest method that have ended in a failure.getFailureCount in interface RepetitionInfoRepetitionInfo.getFailureThreshold()public int getFailureThreshold()
RepetitionInfo@RepeatedTest method.getFailureThreshold in interface RepetitionInfoRepeatedTest.failureThreshold()public java.lang.String toString()
toString in class java.lang.Object