slfan1989 commented on code in PR #7908: URL: https://github.com/apache/hadoop/pull/7908#discussion_r2308933167
########## hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestXAttrsWithHA.java: ########## @@ -105,9 +107,9 @@ public void testXAttrsTrackedOnStandby() throws Exception { cluster.transitionToActive(1); Map<String, byte[]> xattrs = fs.getXAttrs(path); - Assert.assertEquals(xattrs.size(), 2); - Assert.assertArrayEquals(value1, xattrs.get(name1)); - Assert.assertArrayEquals(value2, xattrs.get(name2)); + Assertions.assertEquals(xattrs.size(), 2); Review Comment: The best way is to introduce it via the static method. -- 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