Skip to content

Commit bbe019a

Browse files
committed
HADOOP-19415. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-common Part7.
1 parent db81ea6 commit bbe019a

File tree

206 files changed

+4056
-3562
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+4056
-3562
lines changed

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/conf/TestConfigRedactor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
package org.apache.hadoop.conf;
2020

21-
import org.junit.Test;
21+
import org.junit.jupiter.api.Test;
2222

2323
import java.util.Arrays;
2424
import java.util.List;

hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/FSMainOperationsBaseTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,13 +1001,13 @@ private void doTestRenameDirectoryAsNonExistentDirectory(Rename... options)
10011001
fSys.mkdirs(dst.getParent());
10021002

10031003
rename(src, dst, true, false, true, options);
1004-
Assert.assertFalse("Nested file1 exists",
1004+
Assert.assertFalse("Nested file1 exists",
10051005
exists(fSys, getTestRootPath(fSys, "test/hadoop/dir/file1")));
1006-
Assert.assertFalse("Nested file2 exists",
1006+
Assert.assertFalse("Nested file2 exists",
10071007
exists(fSys, getTestRootPath(fSys, "test/hadoop/dir/subdir/file2")));
10081008
Assert.assertTrue("Renamed nested file1 exists",
10091009
exists(fSys, getTestRootPath(fSys, "test/new/newdir/file1")));
1010-
Assert.assertTrue("Renamed nested exists",
1010+
Assert.assertTrue("Renamed nested exists",
10111011
exists(fSys, getTestRootPath(fSys, "test/new/newdir/subdir/file2")));
10121012
}
10131013

@@ -1117,7 +1117,7 @@ public void testGetWrappedInputStream() throws IOException {
11171117
FSDataInputStream in = fSys.open(src);
11181118
InputStream is = in.getWrappedStream();
11191119
in.close();
1120-
Assert.assertNotNull(is);
1120+
Assert.assertNotNull(is);
11211121
}
11221122

11231123
@Test

0 commit comments

Comments
 (0)