File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
testing-modules/rest-testing
src/test/java/com/baeldung/rest/karate Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 5858 </dependency >
5959 <dependency >
6060 <groupId >com.intuit.karate</groupId >
61- <artifactId >karate-junit4 </artifactId >
61+ <artifactId >karate-junit5 </artifactId >
6262 <version >${karate.version} </version >
6363 <scope >test</scope >
6464 </dependency >
127127 <rest-assured .version>2.9.0</rest-assured .version>
128128 <cucumber .version>6.8.0</cucumber .version>
129129 <wiremock .version>3.9.1</wiremock .version>
130- <karate .version>1.3 .1</karate .version>
130+ <karate .version>1.4 .1</karate .version>
131131 <jbehave .version>4.1</jbehave .version>
132132 </properties >
133133
Original file line number Diff line number Diff line change 22
33import com .github .tomakehurst .wiremock .WireMockServer ;
44import com .github .tomakehurst .wiremock .core .WireMockConfiguration ;
5- import com .intuit .karate .junit4 .Karate ;
5+ import com .intuit .karate .junit5 .Karate ;
66import org .junit .jupiter .api .BeforeAll ;
77import org .junit .jupiter .api .AfterAll ;
8- import org .junit .runner .RunWith ;
9-
108
119import static com .github .tomakehurst .wiremock .client .WireMock .*;
12- import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
1310
14- @ RunWith (Karate .class )
1511public class KarateIntegrationTest {
1612
1713 private static final int PORT_NUMBER = 8097 ;
@@ -43,4 +39,9 @@ public static void tearDown() {
4339 wireMockServer .stop ();
4440 }
4541
42+ @ Karate .Test
43+ Karate testAll () {
44+ return Karate .run ().relativeTo (getClass ());
45+ }
46+
4647}
You can’t perform that action at this time.
0 commit comments