File tree Expand file tree Collapse file tree
src/test/java/guru/springframework/sfgpetclinic/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package guru .springframework .sfgpetclinic .model ;
22
33import guru .springframework .sfgpetclinic .ModelTests ;
4- import org .junit .jupiter .api .DisplayName ;
5- import org .junit .jupiter .api .RepeatedTest ;
6- import org .junit .jupiter .api .Test ;
4+ import org .junit .jupiter .api .*;
75
86import static org .junit .jupiter .api .Assertions .assertAll ;
97import static org .junit .jupiter .api .Assertions .assertEquals ;
@@ -34,8 +32,13 @@ void groupedAssertionMsgs() {
3432
3533 @ RepeatedTest (value = 10 , name = "{displayName} : {currentRepetition} - {totalRepetitions}" )
3634 @ DisplayName ("My Repeated Test" )
37- @ Test
3835 void myRepeatedTest () {
3936 //todo - impl
4037 }
38+
39+ @ RepeatedTest (5 )
40+ void myRepeatedTestWithDI (TestInfo testInfo , RepetitionInfo repetitionInfo ) {
41+ System .out .println (testInfo .getDisplayName () + ": " + repetitionInfo .getCurrentRepetition ());
42+
43+ }
4144}
You can’t perform that action at this time.
0 commit comments