Skip to content

Commit 44de4dd

Browse files
committed
HADOOP-19415. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-common Part8.
1 parent 1e0e1f9 commit 44de4dd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

hadoop-tools/hadoop-aliyun/src/test/java/org/apache/hadoop/fs/aliyun/oss/fileContext/TestOSSFileContextURI.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
import org.apache.hadoop.conf.Configuration;
2323
import org.apache.hadoop.fs.FileContextURIBase;
2424
import org.apache.hadoop.fs.aliyun.oss.AliyunOSSTestUtils;
25-
import org.junit.Before;
26-
import org.junit.Ignore;
27-
import org.junit.Test;
25+
import org.junit.jupiter.api.BeforeEach;
26+
import org.junit.jupiter.api.Disabled;
27+
import org.junit.jupiter.api.Test;
2828

2929
import java.io.IOException;
3030

@@ -33,7 +33,7 @@
3333
*/
3434
public class TestOSSFileContextURI extends FileContextURIBase {
3535

36-
@Before
36+
@BeforeEach
3737
public void setUp() throws IOException, Exception {
3838
Configuration conf = new Configuration();
3939
fc1 = AliyunOSSTestUtils.createTestFileContext(conf);
@@ -43,7 +43,7 @@ public void setUp() throws IOException, Exception {
4343
}
4444

4545
@Test
46-
@Ignore
46+
@Disabled
4747
public void testFileStatus() throws IOException {
4848
// test ignored
4949
// (the statistics tested with this method are not relevant for an OSSFS)

hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/fileContext/ITestS3AFileContextURI.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
import org.apache.hadoop.conf.Configuration;
1818
import org.apache.hadoop.fs.FileContextURIBase;
1919
import org.apache.hadoop.fs.s3a.S3ATestUtils;
20-
import org.junit.Before;
20+
import org.junit.jupiter.api.BeforeEach;
2121
import org.junit.Ignore;
22-
import org.junit.Test;
22+
import org.junit.jupiter.api.Test;
2323

2424
import static org.apache.hadoop.fs.s3a.S3ATestUtils.setPerformanceFlags;
2525

@@ -30,7 +30,7 @@ public class ITestS3AFileContextURI extends FileContextURIBase {
3030

3131
private Configuration conf;
3232

33-
@Before
33+
@BeforeEach
3434
public void setUp() throws IOException, Exception {
3535
conf = setPerformanceFlags(
3636
new Configuration(),
@@ -42,7 +42,7 @@ public void setUp() throws IOException, Exception {
4242
}
4343

4444
@Test
45-
@Ignore
45+
@Disabled
4646
public void testFileStatus() throws IOException {
4747
// test disabled
4848
// (the statistics tested with this method are not relevant for an S3FS)

0 commit comments

Comments
 (0)