From 6d3740fb48cf043d307f44d046ec87e3f3b0c785 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 31 Mar 2024 10:56:06 -0400 Subject: [PATCH] Rework test fixtures Next, grow the amount of data tested to find bugs in the tests with non-repeatable map ordering --- .../collections4/multimap/AbstractMultiValuedMapTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java index 1c931e10c..4a24146a5 100644 --- a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java +++ b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java @@ -948,7 +948,7 @@ public abstract class AbstractMultiValuedMapTest extends AbstractObjectTes @Test public void testKeySetSize() { final MultiValuedMap map = makeFullMap(); - assertEquals(3, map.keySet().size()); + assertEquals(getSampleKeySize(), map.keySet().size()); } @Test