Rework test fixtures
Next, grow the amount of data tested to find bugs in the tests with non-repeatable map ordering
This commit is contained in:
parent
52cdb17e69
commit
817180b4da
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue