hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodePoolManager.java
private void assertTwoDatanodeListsEqual(List<DatanodeDetails> list1,
      List<DatanodeDetails> list2) {
    assertEquals(list1.size(), list2.size());
    Collections.sort(list1);
    Collections.sort(list2);
    assertTrue(ListUtils.isEqualList(list1, list2));
  }
/**
   * Compare and verify that two datanode lists are equal.
   * @param list1 - datanode list 1.
   * @param list2 - datanode list 2.
   */
Compare and verify that two datanode lists are equal.
@param list1 - datanode list 1.
@param list2 - datanode list 2.
Compare and verify that two datanode lists are equal . @param list1 - datanode list 1 . @param list2 - datanode list 2 .
private void assertTwoDatanodeListsEqual(List<DatanodeDetails> list1,
      List<DatanodeDetails> list2) {
    assertEquals(list1.size(), list2.size());
    Collections.sort(list1);
    Collections.sort(list2);
    assertTrue(ListUtils.isEqualList(list1, list2));
  }
private void assertTwoDatanodeListsEqual ( List < DatanodeDetails > list1 , List < DatanodeDetails > list2 ) { assertEquals ( list1 . size ( ) , list2 . size ( ) ) ; Collections . sort ( list1 ) ; Collections . sort ( list2 ) ; assertTrue ( ListUtils . isEqualList ( list1 , list2 ) ) ; }
Compare and verify that two datanode lists are equal.
Compare and verify that two datanode lists are equal .