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)
| 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. |