[JAVA-16834] Added test case (#13192)
Co-authored-by: panagiotiskakos <[email protected]>
This commit is contained in:
committed by
GitHub
co-authored by
panagiotiskakos
parent
a94e993aa6
commit
9d4f599a1a
+8
@@ -51,4 +51,12 @@ public class OrderAgnosticListComparisonUnitTest {
|
||||
|
||||
assertThat(a).hasSameElementsAs(b);
|
||||
}
|
||||
|
||||
@Test
|
||||
void whenTestingForOrderAgnosticEqualityWithDuplicateElementsBothList_ShouldBeEqual() {
|
||||
List<String> a = Arrays.asList("a", "a", "b", "c");
|
||||
List<String> b = Arrays.asList("a", "b", "a", "c");
|
||||
|
||||
assertThat(a).containsExactlyInAnyOrderElementsOf(b);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user