This is an automated email from the ASF dual-hosted git repository.

slfan1989 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 91923fb6399 HADOOP-19430. Upgrade JUnit from 4 to 5 in 
hadoop-datajoin. (#7618)
91923fb6399 is described below

commit 91923fb6399337bafe7e8f969077f8db83991e6e
Author: slfan1989 <55643692+slfan1...@users.noreply.github.com>
AuthorDate: Thu Apr 24 06:13:58 2025 +0800

    HADOOP-19430. Upgrade JUnit from 4 to 5 in hadoop-datajoin. (#7618)
    
    Co-authored-by: Chris Nauroth <cnaur...@apache.org>
    Co-authored-by: Hualong Zhang <hualon...@hotmail.com>
    Reviewed-by: Chris Nauroth <cnaur...@apache.org>
    Reviewed-by: Hualong Zhang <hualon...@hotmail.com>
    Signed-off-by: Shilun Fan <slfan1...@apache.org>
---
 .../org/apache/hadoop/contrib/utils/join/TestDataJoin.java  | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git 
a/hadoop-tools/hadoop-datajoin/src/test/java/org/apache/hadoop/contrib/utils/join/TestDataJoin.java
 
b/hadoop-tools/hadoop-datajoin/src/test/java/org/apache/hadoop/contrib/utils/join/TestDataJoin.java
index 2daae2e803b..ecd1e9f6337 100644
--- 
a/hadoop-tools/hadoop-datajoin/src/test/java/org/apache/hadoop/contrib/utils/join/TestDataJoin.java
+++ 
b/hadoop-tools/hadoop-datajoin/src/test/java/org/apache/hadoop/contrib/utils/join/TestDataJoin.java
@@ -20,10 +20,11 @@
 
 import java.io.IOException;
 
-import org.junit.After;
-import org.junit.Before;
-import org.junit.Test;
-import static org.junit.Assert.*;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.hdfs.MiniDFSCluster;
@@ -43,13 +44,13 @@
 public class TestDataJoin {
   private static MiniDFSCluster cluster = null;
 
-  @Before
+  @BeforeEach
   public void setUp() throws Exception {
     Configuration conf = new Configuration();
     cluster = new MiniDFSCluster.Builder(conf).numDataNodes(2).build();
   }
 
-  @After
+  @AfterEach
   public void tearDown() throws Exception {
     if (cluster != null) {
       cluster.shutdown();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to