Skip to content

Commit

Permalink
Rework test fixtures
Browse files Browse the repository at this point in the history
Next, grow the amount of data tested to find bugs in the tests with
non-repeatable map ordering
  • Loading branch information
garydgregory committed Mar 31, 2024
1 parent 52cdb17 commit 817180b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,12 @@ public void testContainsValue() {
@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;
Expand Down

0 comments on commit 817180b

Please sign in to comment.