This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a8c87c4d Rework test fixtures
8a8c87c4d is described below

commit 8a8c87c4dcd4c51a9709d73123c58a8a6b42667b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Mar 30 13:32:46 2024 -0400

    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      | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

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 1bab571fa..8dce43b58 100644
--- 
a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java
@@ -871,7 +871,7 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
         assertEquals(2, bag.getCount("k0"));
         assertEquals(2, bag.getCount("k1"));
         assertEquals(2, bag.getCount("k2"));
-        assertEquals(6, bag.size());
+        assertEquals(getSampleSize(), bag.size());
     }
 
     @Test
@@ -888,7 +888,7 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
         assertEquals(2, keyMultiSet.getCount("k1"));
         assertEquals(2, keyMultiSet.getCount("k2"));
         assertEquals(0, keyMultiSet.getCount("conut"));
-        assertEquals(6, keyMultiSet.size());
+        assertEquals(getSampleSize(), keyMultiSet.size());
     }
 
     @Test
@@ -1150,7 +1150,7 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
         @SuppressWarnings("unchecked")
         Collection<V> col = map.get((K) "k0");
         assertEquals(2, col.size());
-        assertEquals(6, map.size());
+        assertEquals(getSampleSize(), map.size());
         assertTrue(col.remove("v0_a"));
         assertTrue(col.remove("v0_b"));
         assertFalse(map.containsKey("k0"));
@@ -1203,7 +1203,7 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
 
     @Test
     public void testSize() {
-        assertEquals(6, makeFullMap().size());
+        assertEquals(getSampleSize(), makeFullMap().size());
     }
 
     @Test
@@ -1303,7 +1303,7 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
         expected.add((V) "v2_a");
         expected.add((V) "v2_b");
         final Collection<V> c = map.values();
-        assertEquals(6, c.size());
+        assertEquals(getSampleSize(), c.size());
         assertEquals(expected, new HashSet<>(c));
     }
 

Reply via email to