Skip to content

Commit e4efbda

Browse files
authored
HBASE-23671 Upgrade to JUnit 5 (#7253)
HBASE-23671 Upgrade to JUnit 5 also update maven-surefire-plugin to 3.5.3 Signed-off-by: Nihal Jain <[email protected]> Signed-off-by: Duo Zhang <[email protected]> Reviewed-by: Aman Poonia <[email protected]>
1 parent 64a1921 commit e4efbda

File tree

37 files changed

+611
-80
lines changed

37 files changed

+611
-80
lines changed

hbase-annotations/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@
4040
<skip>true</skip>
4141
</configuration>
4242
</plugin>
43+
<plugin>
44+
<groupId>org.apache.maven.plugins</groupId>
45+
<artifactId>maven-surefire-plugin</artifactId>
46+
<configuration>
47+
<skipTests>true</skipTests>
48+
</configuration>
49+
</plugin>
4350
<plugin>
4451
<groupId>org.apache.maven.plugins</groupId>
4552
<artifactId>maven-checkstyle-plugin</artifactId>

hbase-archetypes/hbase-client-project/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,23 @@
8787
<scope>test</scope>
8888
</dependency>
8989
<dependency>
90-
<groupId>junit</groupId>
91-
<artifactId>junit</artifactId>
90+
<groupId>org.junit.jupiter</groupId>
91+
<artifactId>junit-jupiter-api</artifactId>
92+
<scope>test</scope>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.junit.jupiter</groupId>
96+
<artifactId>junit-jupiter-engine</artifactId>
97+
<scope>test</scope>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.junit.jupiter</groupId>
101+
<artifactId>junit-jupiter-params</artifactId>
102+
<scope>test</scope>
103+
</dependency>
104+
<dependency>
105+
<groupId>org.junit.vintage</groupId>
106+
<artifactId>junit-vintage-engine</artifactId>
92107
<scope>test</scope>
93108
</dependency>
94109
</dependencies>

hbase-archetypes/hbase-shaded-client-project/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,23 @@
8787
<scope>runtime</scope>
8888
</dependency>
8989
<dependency>
90-
<groupId>junit</groupId>
91-
<artifactId>junit</artifactId>
90+
<groupId>org.junit.jupiter</groupId>
91+
<artifactId>junit-jupiter-api</artifactId>
92+
<scope>test</scope>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.junit.jupiter</groupId>
96+
<artifactId>junit-jupiter-engine</artifactId>
97+
<scope>test</scope>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.junit.jupiter</groupId>
101+
<artifactId>junit-jupiter-params</artifactId>
102+
<scope>test</scope>
103+
</dependency>
104+
<dependency>
105+
<groupId>org.junit.vintage</groupId>
106+
<artifactId>junit-vintage-engine</artifactId>
92107
<scope>test</scope>
93108
</dependency>
94109
</dependencies>

hbase-assembly-byo-hadoop/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,23 @@
493493
<scope>compile</scope>
494494
</dependency>
495495
<dependency>
496-
<groupId>junit</groupId>
497-
<artifactId>junit</artifactId>
496+
<groupId>org.junit.jupiter</groupId>
497+
<artifactId>junit-jupiter-api</artifactId>
498+
<scope>compile</scope>
499+
</dependency>
500+
<dependency>
501+
<groupId>org.junit.jupiter</groupId>
502+
<artifactId>junit-jupiter-engine</artifactId>
503+
<scope>compile</scope>
504+
</dependency>
505+
<dependency>
506+
<groupId>org.junit.jupiter</groupId>
507+
<artifactId>junit-jupiter-params</artifactId>
508+
<scope>compile</scope>
509+
</dependency>
510+
<dependency>
511+
<groupId>org.junit.vintage</groupId>
512+
<artifactId>junit-vintage-engine</artifactId>
498513
<scope>compile</scope>
499514
</dependency>
500515
<dependency>

hbase-assembly/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,23 @@
394394
<scope>compile</scope>
395395
</dependency>
396396
<dependency>
397-
<groupId>junit</groupId>
398-
<artifactId>junit</artifactId>
397+
<groupId>org.junit.jupiter</groupId>
398+
<artifactId>junit-jupiter-api</artifactId>
399+
<scope>compile</scope>
400+
</dependency>
401+
<dependency>
402+
<groupId>org.junit.jupiter</groupId>
403+
<artifactId>junit-jupiter-engine</artifactId>
404+
<scope>compile</scope>
405+
</dependency>
406+
<dependency>
407+
<groupId>org.junit.jupiter</groupId>
408+
<artifactId>junit-jupiter-params</artifactId>
409+
<scope>compile</scope>
410+
</dependency>
411+
<dependency>
412+
<groupId>org.junit.vintage</groupId>
413+
<artifactId>junit-vintage-engine</artifactId>
399414
<scope>compile</scope>
400415
</dependency>
401416
<dependency>

hbase-asyncfs/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,23 @@
6969
<optional>true</optional>
7070
</dependency>
7171
<dependency>
72-
<groupId>junit</groupId>
73-
<artifactId>junit</artifactId>
72+
<groupId>org.junit.jupiter</groupId>
73+
<artifactId>junit-jupiter-api</artifactId>
74+
<scope>test</scope>
75+
</dependency>
76+
<dependency>
77+
<groupId>org.junit.jupiter</groupId>
78+
<artifactId>junit-jupiter-engine</artifactId>
79+
<scope>test</scope>
80+
</dependency>
81+
<dependency>
82+
<groupId>org.junit.jupiter</groupId>
83+
<artifactId>junit-jupiter-params</artifactId>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.junit.vintage</groupId>
88+
<artifactId>junit-vintage-engine</artifactId>
7489
<scope>test</scope>
7590
</dependency>
7691
<dependency>

hbase-backup/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,23 @@
163163
<scope>test</scope>
164164
</dependency>
165165
<dependency>
166-
<groupId>junit</groupId>
167-
<artifactId>junit</artifactId>
166+
<groupId>org.junit.jupiter</groupId>
167+
<artifactId>junit-jupiter-api</artifactId>
168+
<scope>test</scope>
169+
</dependency>
170+
<dependency>
171+
<groupId>org.junit.jupiter</groupId>
172+
<artifactId>junit-jupiter-engine</artifactId>
173+
<scope>test</scope>
174+
</dependency>
175+
<dependency>
176+
<groupId>org.junit.jupiter</groupId>
177+
<artifactId>junit-jupiter-params</artifactId>
178+
<scope>test</scope>
179+
</dependency>
180+
<dependency>
181+
<groupId>org.junit.vintage</groupId>
182+
<artifactId>junit-vintage-engine</artifactId>
168183
<scope>test</scope>
169184
</dependency>
170185
</dependencies>

hbase-balancer/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,23 @@
7979
<scope>test</scope>
8080
</dependency>
8181
<dependency>
82-
<groupId>junit</groupId>
83-
<artifactId>junit</artifactId>
82+
<groupId>org.junit.jupiter</groupId>
83+
<artifactId>junit-jupiter-api</artifactId>
84+
<scope>test</scope>
85+
</dependency>
86+
<dependency>
87+
<groupId>org.junit.jupiter</groupId>
88+
<artifactId>junit-jupiter-engine</artifactId>
89+
<scope>test</scope>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.junit.jupiter</groupId>
93+
<artifactId>junit-jupiter-params</artifactId>
94+
<scope>test</scope>
95+
</dependency>
96+
<dependency>
97+
<groupId>org.junit.vintage</groupId>
98+
<artifactId>junit-vintage-engine</artifactId>
8499
<scope>test</scope>
85100
</dependency>
86101
<dependency>

hbase-checkstyle/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
<skipSource>true</skipSource>
4343
</configuration>
4444
</plugin>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-surefire-plugin</artifactId>
48+
<configuration>
49+
<skipTests>true</skipTests>
50+
</configuration>
51+
</plugin>
4552
<plugin>
4653
<groupId>org.apache.maven.plugins</groupId>
4754
<artifactId>maven-site-plugin</artifactId>

hbase-client/pom.xml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,23 @@
161161
<artifactId>metrics-core</artifactId>
162162
</dependency>
163163
<dependency>
164-
<groupId>junit</groupId>
165-
<artifactId>junit</artifactId>
164+
<groupId>org.junit.jupiter</groupId>
165+
<artifactId>junit-jupiter-api</artifactId>
166+
<scope>test</scope>
167+
</dependency>
168+
<dependency>
169+
<groupId>org.junit.jupiter</groupId>
170+
<artifactId>junit-jupiter-engine</artifactId>
171+
<scope>test</scope>
172+
</dependency>
173+
<dependency>
174+
<groupId>org.junit.jupiter</groupId>
175+
<artifactId>junit-jupiter-params</artifactId>
176+
<scope>test</scope>
177+
</dependency>
178+
<dependency>
179+
<groupId>org.junit.vintage</groupId>
180+
<artifactId>junit-vintage-engine</artifactId>
166181
<scope>test</scope>
167182
</dependency>
168183
<dependency>

0 commit comments

Comments
 (0)