Module org.junit.jupiter.engine
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 TypeMethodDescriptionintGet the current repetition of the corresponding@RepeatedTestmethod.intGet the current number of repetitions of the corresponding@RepeatedTestmethod that have ended in a failure.intGet the configured failure threshold of the corresponding@RepeatedTestmethod.intGet the total number of repetitions of the corresponding@RepeatedTestmethod.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:RepetitionInfoGet the current repetition of the corresponding@RepeatedTestmethod.- Specified by:
getCurrentRepetitionin interfaceRepetitionInfo
-
getTotalRepetitions
public int getTotalRepetitions()Description copied from interface:RepetitionInfoGet the total number of repetitions of the corresponding@RepeatedTestmethod.- Specified by:
getTotalRepetitionsin interfaceRepetitionInfo- See Also:
-
getFailureCount
public int getFailureCount()Description copied from interface:RepetitionInfoGet the current number of repetitions of the corresponding@RepeatedTestmethod that have ended in a failure.- Specified by:
getFailureCountin interfaceRepetitionInfo- See Also:
-
getFailureThreshold
public int getFailureThreshold()Description copied from interface:RepetitionInfoGet the configured failure threshold of the corresponding@RepeatedTestmethod.- Specified by:
getFailureThresholdin interfaceRepetitionInfo- See Also:
-
toString
-