Copilot commented on code in PR #8063:
URL: https://github.com/apache/hbase/pull/8063#discussion_r3080782977


##########
hbase-server/src/test/java/org/apache/hadoop/hbase/filter/TestFuzzyRowFilter.java:
##########
@@ -17,26 +17,25 @@
  */
 package org.apache.hadoop.hbase.filter;
 
+import static org.junit.Assert.assertThrows;
+import static org.junit.jupiter.api.Assertions.assertArrayEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;

Review Comment:
   This test is mixing JUnit4 and JUnit5 assertions 
(`org.junit.Assert.assertThrows` with Jupiter assertions). For a JUnit5 
migration, use `org.junit.jupiter.api.Assertions.assertThrows` to avoid 
depending on JUnit4 at runtime and to keep assertion types consistent.
   ```suggestion
   import static org.junit.jupiter.api.Assertions.assertArrayEquals;
   import static org.junit.jupiter.api.Assertions.assertEquals;
   import static org.junit.jupiter.api.Assertions.assertNull;
   import static org.junit.jupiter.api.Assertions.assertThrows;
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to