junkaixue commented on code in PR #2666:
URL: https://github.com/apache/helix/pull/2666#discussion_r1500072553
##########
helix-rest/src/test/java/org/apache/helix/rest/metadatastore/TestZkMetadataStoreDirectory.java:
##########
@@ -375,4 +375,10 @@ private void clearRoutingData() throws Exception {
return true;
}, TestHelper.WAIT_DURATION), "Routing data path should be deleted after
the tests.");
}
+ private void
assertCollectionsContainSameElementsIgnoringOrder(Collection<String>
collection1,
+ Collection<String> collection2) {
+ Assert.assertEquals(collection2.size(), collection1.size());
+ Assert.assertTrue(collection2.containsAll(collection1));
+ Assert.assertTrue(collection1.containsAll(collection2));
+ }
Review Comment:
Would be good to have it in the abstractestclass to be a common used 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]