|
@@ -18,7 +18,7 @@
|
|
|
|
|
|
package org.apache.hadoop.mapreduce.v2.hs.webapp;
|
|
package org.apache.hadoop.mapreduce.v2.hs.webapp;
|
|
|
|
|
|
-import static org.junit.Assert.assertEquals;
|
|
|
|
|
|
+import static org.junit.jupiter.api.Assertions.assertEquals;
|
|
|
|
|
|
import java.net.URI;
|
|
import java.net.URI;
|
|
import java.net.URISyntaxException;
|
|
import java.net.URISyntaxException;
|
|
@@ -27,11 +27,11 @@ import org.apache.hadoop.http.HttpConfig;
|
|
import org.apache.hadoop.mapreduce.v2.jobhistory.JHAdminConfig;
|
|
import org.apache.hadoop.mapreduce.v2.jobhistory.JHAdminConfig;
|
|
import org.apache.hadoop.yarn.api.records.ApplicationId;
|
|
import org.apache.hadoop.yarn.api.records.ApplicationId;
|
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
|
-import org.junit.Test;
|
|
|
|
|
|
+import org.junit.jupiter.api.Test;
|
|
|
|
|
|
public class TestMapReduceTrackingUriPlugin {
|
|
public class TestMapReduceTrackingUriPlugin {
|
|
@Test
|
|
@Test
|
|
- public void testProducesHistoryServerUriForAppId()
|
|
|
|
|
|
+ void testProducesHistoryServerUriForAppId()
|
|
throws URISyntaxException {
|
|
throws URISyntaxException {
|
|
final String historyAddress = "example.net:424242";
|
|
final String historyAddress = "example.net:424242";
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
@@ -49,7 +49,7 @@ public class TestMapReduceTrackingUriPlugin {
|
|
}
|
|
}
|
|
|
|
|
|
@Test
|
|
@Test
|
|
- public void testProducesHistoryServerUriWithHTTPS()
|
|
|
|
|
|
+ void testProducesHistoryServerUriWithHTTPS()
|
|
throws URISyntaxException {
|
|
throws URISyntaxException {
|
|
final String historyAddress = "example.net:404040";
|
|
final String historyAddress = "example.net:404040";
|
|
YarnConfiguration conf = new YarnConfiguration();
|
|
YarnConfiguration conf = new YarnConfiguration();
|