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 int
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Get the current repetition of the corresponding@RepeatedTest
method.int
Get the total number of repetitions of the corresponding@RepeatedTest
method.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: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:
-
toString
-