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 58
58
</dependency >
59
59
<dependency >
60
60
<groupId >com.intuit.karate</groupId >
61
- <artifactId >karate-junit4 </artifactId >
61
+ <artifactId >karate-junit5 </artifactId >
62
62
<version >${karate.version} </version >
63
63
<scope >test</scope >
64
64
</dependency >
127
127
<rest-assured .version>2.9.0</rest-assured .version>
128
128
<cucumber .version>6.8.0</cucumber .version>
129
129
<wiremock .version>3.9.1</wiremock .version>
130
- <karate .version>1.3 .1</karate .version>
130
+ <karate .version>1.4 .1</karate .version>
131
131
<jbehave .version>4.1</jbehave .version>
132
132
</properties >
133
133
Original file line number Diff line number Diff line change 2
2
3
3
import com .github .tomakehurst .wiremock .WireMockServer ;
4
4
import com .github .tomakehurst .wiremock .core .WireMockConfiguration ;
5
- import com .intuit .karate .junit4 .Karate ;
5
+ import com .intuit .karate .junit5 .Karate ;
6
6
import org .junit .jupiter .api .BeforeAll ;
7
7
import org .junit .jupiter .api .AfterAll ;
8
- import org .junit .runner .RunWith ;
9
-
10
8
11
9
import static com .github .tomakehurst .wiremock .client .WireMock .*;
12
- import static com .github .tomakehurst .wiremock .client .WireMock .aResponse ;
13
10
14
- @ RunWith (Karate .class )
15
11
public class KarateIntegrationTest {
16
12
17
13
private static final int PORT_NUMBER = 8097 ;
@@ -43,4 +39,9 @@ public static void tearDown() {
43
39
wireMockServer .stop ();
44
40
}
45
41
42
+ @ Karate .Test
43
+ Karate testAll () {
44
+ return Karate .run ().relativeTo (getClass ());
45
+ }
46
+
46
47
}
You can’t perform that action at this time.
0 commit comments