Java 类org.junit.jupiter.api.RepetitionInfo 实例源码
项目:mastering-junit5
文件:RepetitionInfoTest.java
@RepeatedTest(2)
void test(RepetitionInfo repetitionInfo) {
System.out.println("** Test " + repetitionInfo.getCurrentRepetition()
+ "/" + repetitionInfo.getTotalRepetitions());
}
项目:Mastering-Software-Testing-with-JUnit-5
文件:RepetitionInfoTest.java
@RepeatedTest(2)
void test1(RepetitionInfo repetitionInfo) {
System.out.println("** Test " + repetitionInfo.getCurrentRepetition()
+ "/" + repetitionInfo.getTotalRepetitions());
}
项目:junit5-demo
文件:RepeatedTests.java
@RepeatedTest(5)
void repeatedTest(RepetitionInfo repetitionInfo) {
assertEquals(5, repetitionInfo.getTotalRepetitions());
}