snuyanzin commented on code in PR #28261:
URL: https://github.com/apache/flink/pull/28261#discussion_r3332211130


##########
flink-state-backends/flink-statebackend-forst/src/test/java/org/apache/flink/state/forst/ForStStateBackendFactoryTest.java:
##########
@@ -125,15 +122,9 @@ public void testLoadForStStateBackendMixed() throws 
Exception {
     // ------------------------------------------------------------------------
 
     private static void checkPaths(String[] pathsArray, String... paths) {
-        assertNotNull(pathsArray);
-        assertNotNull(paths);
-
-        assertEquals(pathsArray.length, paths.length);
-
-        HashSet<String> pathsSet = new HashSet<>(Arrays.asList(pathsArray));
-
-        for (String path : paths) {
-            assertTrue(pathsSet.contains(path));
-        }
+        assertThat(pathsArray).isNotNull();
+        assertThat(paths).isNotNull();
+        assertThat(pathsArray).hasSize(paths.length);
+        assertThat(pathsArray).contains(paths);

Review Comment:
   how about `containsExactlyInAnyOrder`?
   then no need to check for size



-- 
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