Skip to content

Commit 98e74c1

Browse files
committed
HADOOP-19428. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-dynamometer-blockgen.
1 parent e8a64d0 commit 98e74c1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-blockgen/src/test/java/org/apache/hadoop/tools/dynamometer/blockgenerator/TestBlockGen.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
import org.apache.hadoop.fs.FileSystem;
2222
import org.apache.hadoop.fs.Path;
2323
import org.apache.hadoop.hdfs.MiniDFSCluster;
24-
import org.junit.After;
25-
import org.junit.Before;
26-
import org.junit.Test;
24+
import org.junit.jupiter.api.AfterEach;
25+
import org.junit.jupiter.api.BeforeEach;
26+
import org.junit.jupiter.api.Test;
2727
import org.slf4j.Logger;
2828
import org.slf4j.LoggerFactory;
2929

30-
import static org.junit.Assert.assertEquals;
30+
import static org.junit.jupiter.api.Assertions.assertEquals;
3131

3232

3333
/** Tests for block generation via {@link GenerateBlockImagesDriver}. */
@@ -40,7 +40,7 @@ public class TestBlockGen {
4040
private static final String BLOCK_LIST_OUTPUT_DIR_NAME = "blockLists";
4141
private Path tmpPath;
4242

43-
@Before
43+
@BeforeEach
4444
public void setup() throws Exception {
4545
Configuration conf = new Configuration();
4646
dfsCluster = new MiniDFSCluster.Builder(conf).build();
@@ -57,7 +57,7 @@ public void setup() throws Exception {
5757
new Path(tmpPath, FS_IMAGE_NAME));
5858
}
5959

60-
@After
60+
@AfterEach
6161
public void cleanUp() {
6262
dfsCluster.shutdown();
6363
}

hadoop-tools/hadoop-dynamometer/hadoop-dynamometer-blockgen/src/test/java/org/apache/hadoop/tools/dynamometer/blockgenerator/TestXMLParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
import java.util.HashMap;
2121
import java.util.Map;
22-
import org.junit.Test;
23-
import static org.junit.Assert.*;
22+
import org.junit.jupiter.api.Test;
23+
import static org.junit.jupiter.api.Assertions.*;
2424

2525

2626
/** Tests for {@link XMLParser}. */

0 commit comments

Comments
 (0)