File tree 2 files changed +16
-10
lines changed
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 21
21
<properties >
22
22
<java .version>8</java .version>
23
23
<jersey .version>2.27</jersey .version>
24
- <junit .version>4.12 </junit .version>
24
+ <junit .version>5.7.1 </junit .version>
25
25
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
26
26
</properties >
27
27
34
34
<type >pom</type >
35
35
<scope >import</scope >
36
36
</dependency >
37
+ <dependency >
38
+ <groupId >org.junit</groupId >
39
+ <artifactId >junit-bom</artifactId >
40
+ <version >${junit.version} </version >
41
+ <type >pom</type >
42
+ <scope >import</scope >
43
+ </dependency >
37
44
</dependencies >
38
45
</dependencyManagement >
39
46
56
63
</dependency >
57
64
58
65
<dependency >
59
- <groupId >junit</groupId >
60
- <artifactId >junit</artifactId >
61
- <version >${junit.version} </version >
66
+ <groupId >org.junit.jupiter</groupId >
67
+ <artifactId >junit-jupiter</artifactId >
62
68
<scope >test</scope >
63
69
</dependency >
64
70
Original file line number Diff line number Diff line change 1
1
package com .miguno ;
2
2
3
3
import org .glassfish .grizzly .http .server .HttpServer ;
4
- import org .junit .After ;
5
- import org .junit .Before ;
6
- import org .junit .Test ;
4
+ import org .junit .jupiter . api . AfterEach ;
5
+ import org .junit .jupiter . api . BeforeEach ;
6
+ import org .junit .jupiter . api . Test ;
7
7
8
8
import javax .ws .rs .client .Client ;
9
9
import javax .ws .rs .client .ClientBuilder ;
10
10
import javax .ws .rs .client .WebTarget ;
11
11
12
- import static org .junit .Assert .assertEquals ;
12
+ import static org .junit .jupiter . api . Assertions .assertEquals ;
13
13
14
14
public class StatusTest {
15
15
16
16
private HttpServer server ;
17
17
private WebTarget target ;
18
18
19
- @ Before
19
+ @ BeforeEach
20
20
public void setUp () {
21
21
server = App .startServer ();
22
22
Client c = ClientBuilder .newClient ();
23
23
target = c .target (App .BASE_URI );
24
24
}
25
25
26
- @ After
26
+ @ AfterEach
27
27
public void tearDown () {
28
28
server .shutdownNow ();
29
29
}
You can’t perform that action at this time.
0 commit comments