Class RepetitionInfoParameterResolver.DefaultRepetitionInfo
java.lang.Object
org.junit.jupiter.engine.extension.RepetitionInfoParameterResolver.DefaultRepetitionInfo
- All Implemented Interfaces:
RepetitionInfo
- Enclosing class:
RepetitionInfoParameterResolver
private static class RepetitionInfoParameterResolver.DefaultRepetitionInfo
extends Object
implements RepetitionInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the current repetition of the corresponding@RepeatedTestmethod.intGet the total number of repetitions of the corresponding@RepeatedTestmethod.toString()
-
Field Details
-
currentRepetition
private final int currentRepetition -
totalRepetitions
private final int totalRepetitions
-
-
Constructor Details
-
DefaultRepetitionInfo
DefaultRepetitionInfo(int currentRepetition, int totalRepetitions)
-
-
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:
-
toString
-