MCPcopy Index your code
hub / github.com/assertj/assertj / assertContainsValue

Method assertContainsValue

src/main/java/org/assertj/core/internal/Maps.java:341–347  ·  view source on GitHub ↗

Verifies that the actual map contain the given value. @param info contains information about the assertion. @param actual the given Map. @param value the given value @throws AssertionError if the actual map is null. @throws AssertionError if the actual map not contains the given val

(AssertionInfo info, Map<K, V> actual, V value)

Source from the content-addressed store, hash-verified

339 * @throws AssertionError if the actual map not contains the given value.
340 */
341 public <K, V> void assertContainsValue(AssertionInfo info, Map<K, V> actual, V value) {
342 assertNotNull(info, actual);
343 if (actual.containsValue(value)) {
344 return;
345 }
346 throw failures.failure(info, shouldContainValue(actual, value));
347 }
348
349 /**
350 * Verifies that the actual map contain the given values.

Calls 4

assertNotNullMethod · 0.95
containsValueMethod · 0.80
shouldContainValueMethod · 0.80
failureMethod · 0.45