Skip to content

Commit 5f96ffb

Browse files
Dalibor SkrobakVladimir Kotal
authored andcommitted
initialization of Junit 5
1 parent f23ad94 commit 5f96ffb

File tree

5 files changed

+38
-13
lines changed

5 files changed

+38
-13
lines changed

opengrok-indexer/pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,13 @@ Portions Copyright (c) 2017-2018, Chris Fraire <[email protected]>.
112112
<version>${jersey.version}</version>
113113
</dependency>
114114
<dependency>
115-
<groupId>junit</groupId>
116-
<artifactId>junit</artifactId>
115+
<groupId>org.junit.jupiter</groupId>
116+
<artifactId>junit-jupiter-engine</artifactId>
117+
<scope>test</scope>
118+
</dependency>
119+
<dependency>
120+
<groupId>org.junit.vintage</groupId>
121+
<artifactId>junit-vintage-engine</artifactId>
117122
<scope>test</scope>
118123
</dependency>
119124
<dependency> <!-- TODO: remove! (moving Messages to web module) -->

opengrok-web/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,13 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
128128
<scope>test</scope>
129129
</dependency>
130130
<dependency>
131-
<groupId>org.hamcrest</groupId>
132-
<artifactId>hamcrest-library</artifactId>
133-
<version>1.3</version>
131+
<groupId>org.junit.jupiter</groupId>
132+
<artifactId>junit-jupiter-engine</artifactId>
133+
<scope>test</scope>
134+
</dependency>
135+
<dependency>
136+
<groupId>org.junit.vintage</groupId>
137+
<artifactId>junit-vintage-engine</artifactId>
134138
<scope>test</scope>
135139
</dependency>
136140
<dependency>

plugins/pom.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,13 @@ Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
4747
<artifactId>javax.servlet-api</artifactId>
4848
</dependency>
4949
<dependency>
50-
<groupId>junit</groupId>
51-
<artifactId>junit</artifactId>
52-
<version>4.12</version>
50+
<groupId>org.junit.jupiter</groupId>
51+
<artifactId>junit-jupiter-engine</artifactId>
52+
<scope>test</scope>
53+
</dependency>
54+
<dependency>
55+
<groupId>org.junit.vintage</groupId>
56+
<artifactId>junit-vintage-engine</artifactId>
5357
<scope>test</scope>
5458
</dependency>
5559
<dependency>

pom.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,20 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
6868
<jersey.version>2.27</jersey.version>
6969
<!-- Jackson version needs to match the version of Jackson Jersey depends on otherwise weird things will happen. -->
7070
<jackson.version>2.8.10</jackson.version>
71+
<junit.version>5.4.2</junit.version>
7172
</properties>
7273

7374
<dependencyManagement>
7475
<dependencies>
7576
<dependency>
76-
<groupId>junit</groupId>
77-
<artifactId>junit</artifactId>
78-
<version>4.12</version>
77+
<groupId>org.junit.jupiter</groupId>
78+
<artifactId>junit-jupiter-engine</artifactId>
79+
<version>${junit.version}</version>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.junit.vintage</groupId>
83+
<artifactId>junit-vintage-engine</artifactId>
84+
<version>${junit.version}</version>
7985
</dependency>
8086
<dependency>
8187
<groupId>org.apache.bcel</groupId>

suggester/pom.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,14 @@
5858
</dependency>
5959

6060
<dependency>
61-
<groupId>junit</groupId>
62-
<artifactId>junit</artifactId>
61+
<groupId>org.junit.jupiter</groupId>
62+
<artifactId>junit-jupiter-engine</artifactId>
63+
<scope>test</scope>
64+
</dependency>
65+
66+
<dependency>
67+
<groupId>org.junit.vintage</groupId>
68+
<artifactId>junit-vintage-engine</artifactId>
6369
<scope>test</scope>
6470
</dependency>
6571

0 commit comments

Comments
 (0)