Skip to content

Commit b24c60d

Browse files
author
Ashutosh Gupta
committed
MAPREDUCE-7413. Upgrade Junit 4 to 5 in hadoop-mapreduce-client-hs-plugins
1 parent 647457e commit b24c60d

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs-plugins/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
3636
<groupId>org.apache.hadoop</groupId>
3737
<artifactId>hadoop-yarn-common</artifactId>
3838
</dependency>
39+
<dependency>
40+
<groupId>org.junit.jupiter</groupId>
41+
<artifactId>junit-jupiter-api</artifactId>
42+
<scope>test</scope>
43+
</dependency>
44+
<dependency>
45+
<groupId>org.junit.jupiter</groupId>
46+
<artifactId>junit-jupiter-engine</artifactId>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.junit.platform</groupId>
51+
<artifactId>junit-platform-launcher</artifactId>
52+
<scope>test</scope>
53+
</dependency>
3954
<dependency>
4055
<groupId>org.apache.hadoop</groupId>
4156
<artifactId>hadoop-mapreduce-client-common</artifactId>

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs-plugins/src/test/java/org/apache/hadoop/mapreduce/v2/hs/webapp/TestMapReduceTrackingUriPlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.mapreduce.v2.hs.webapp;
2020

21-
import static org.junit.Assert.assertEquals;
21+
import static org.junit.jupiter.api.Assertions.assertEquals;
2222

2323
import java.net.URI;
2424
import java.net.URISyntaxException;
@@ -27,11 +27,11 @@
2727
import org.apache.hadoop.mapreduce.v2.jobhistory.JHAdminConfig;
2828
import org.apache.hadoop.yarn.api.records.ApplicationId;
2929
import org.apache.hadoop.yarn.conf.YarnConfiguration;
30-
import org.junit.Test;
30+
import org.junit.jupiter.api.Test;
3131

3232
public class TestMapReduceTrackingUriPlugin {
3333
@Test
34-
public void testProducesHistoryServerUriForAppId()
34+
void testProducesHistoryServerUriForAppId()
3535
throws URISyntaxException {
3636
final String historyAddress = "example.net:424242";
3737
YarnConfiguration conf = new YarnConfiguration();
@@ -49,7 +49,7 @@ public void testProducesHistoryServerUriForAppId()
4949
}
5050

5151
@Test
52-
public void testProducesHistoryServerUriWithHTTPS()
52+
void testProducesHistoryServerUriWithHTTPS()
5353
throws URISyntaxException {
5454
final String historyAddress = "example.net:404040";
5555
YarnConfiguration conf = new YarnConfiguration();

0 commit comments

Comments
 (0)