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 java.lang.Object implements RepetitionInfo
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentRepetition
private int
totalRepetitions
-
Constructor Summary
Constructors Constructor Description DefaultRepetitionInfo(int currentRepetition, int totalRepetitions)
-
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
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()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-