[JAVA-16834] Added test case (#13192)
Co-authored-by: panagiotiskakos <panagiotis.kakos@libra-is.com>
This commit is contained in:
@@ -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