RepetitionInfois used to inject information about the current repetition of a repeated test into
If a method parameter is of type
RepetitionInfo, JUnit will supply an instance of
RepetitionInfocorresponding to the current repeated test as the value for the parameter.
RepetitionInfocannot be injected into a
@AfterEachmethod if the corresponding test method is not a
@RepeatedTest. Any attempt to do so will result in a