📜  在 Java 代码示例中为等式忽略顺序断言两个列表

📅  最后修改于: 2022-03-11 14:52:38.943000             🧑  作者: Mango

代码示例1
@Test
public void whenTestingForOrderAgnosticEquality_ShouldBeTrue() {
    assertTrue(first.size() == second.size() && first.containsAll(second) && second.containsAll(first));
}