zhtttylz commented on code in PR #7873: URL: https://github.com/apache/hadoop/pull/7873#discussion_r2280710928
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestDeduplicationMap.java: ########## @@ -19,18 +19,18 @@ package org.apache.hadoop.hdfs.server.namenode; import org.apache.hadoop.hdfs.server.namenode.FSImageFormatProtobuf.SaverContext.DeduplicationMap; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; public class TestDeduplicationMap { @Test public void testDeduplicationMap() { DeduplicationMap<String> m = DeduplicationMap.newMap(); - Assert.assertEquals(1, m.getId("1")); - Assert.assertEquals(2, m.getId("2")); - Assert.assertEquals(3, m.getId("3")); - Assert.assertEquals(1, m.getId("1")); - Assert.assertEquals(2, m.getId("2")); - Assert.assertEquals(3, m.getId("3")); + Assertions.assertEquals(1, m.getId("1")); Review Comment: Thanks for the feedback—I’ll make the updates right away! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org