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

commit 817180b4da7e378d12fd918fdf0ae97cf7bdbbd8
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Mar 31 09:52:52 2024 -0400

    Rework test fixtures
    
    Next, grow the amount of data tested to find bugs in the tests with
    non-repeatable map ordering
---
 .../commons/collections4/multimap/AbstractMultiValuedMapTest.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 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 b9243162c..b4b224da1 100644
--- 
a/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/multimap/AbstractMultiValuedMapTest.java
@@ -804,7 +804,12 @@ public abstract class AbstractMultiValuedMapTest<K, V> 
extends AbstractObjectTes
     @SuppressWarnings("unchecked")
     public void testContainsValue_Key() {
         final MultiValuedMap<K, V> map = makeFullMap();
-        assertTrue(map.containsMapping("k0", "v0_1"));
+        final int maxK = getSampleKeySize();
+        final int maxV = getSampleCountPerKey();
+        for (int k = 0; k < maxK; k++) {
+            for (int v = 0; v < maxV; v++) {
+                assertTrue(map.containsMapping(makeKey(k), makeValue(k, v)));  
          }
+        }
         assertFalse(map.containsMapping("k1", "2"));
         if (!isAddSupported()) {
             return;

Reply via email to