|
@@ -18,18 +18,20 @@
|
|
|
|
|
|
package org.apache.hadoop.fs;
|
|
|
|
|
|
+import static org.junit.Assert.assertEquals;
|
|
|
+import static org.junit.Assert.assertNotNull;
|
|
|
+
|
|
|
import java.io.IOException;
|
|
|
import java.net.URI;
|
|
|
|
|
|
-import junit.framework.TestCase;
|
|
|
-
|
|
|
import org.apache.hadoop.conf.Configuration;
|
|
|
import org.apache.hadoop.fs.permission.FsPermission;
|
|
|
import org.apache.hadoop.security.NetUtilsTestResolver;
|
|
|
import org.apache.hadoop.util.Progressable;
|
|
|
+import org.junit.BeforeClass;
|
|
|
import org.junit.Test;
|
|
|
|
|
|
-public class TestFileSystemCanonicalization extends TestCase {
|
|
|
+public class TestFileSystemCanonicalization {
|
|
|
static String[] authorities = {
|
|
|
"myfs://host",
|
|
|
"myfs://host.a",
|
|
@@ -41,8 +43,8 @@ public class TestFileSystemCanonicalization extends TestCase {
|
|
|
};
|
|
|
|
|
|
|
|
|
- @Test
|
|
|
- public void testSetupResolver() throws Exception {
|
|
|
+ @BeforeClass
|
|
|
+ public static void initialize() throws Exception {
|
|
|
NetUtilsTestResolver.install();
|
|
|
}
|
|
|
|