Asserts that the given Map is empty. @param info contains information about the assertion. @param actual the given Map. @throws AssertionError if the given Map is null. @throws AssertionError if the given Map is not empty.
(AssertionInfo info, Map<?, ?> actual)
| 91 | * @throws AssertionError if the given {@code Map} is not empty. |
| 92 | */ |
| 93 | public void assertEmpty(AssertionInfo info, Map<?, ?> actual) { |
| 94 | assertNotNull(info, actual); |
| 95 | if (actual.isEmpty()) { |
| 96 | return; |
| 97 | } |
| 98 | throw failures.failure(info, shouldBeEmpty(actual)); |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Asserts that the given {@code Map} is not empty. |