Asserts that the given Map is not 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 empty.
(AssertionInfo info, Map<?, ?> actual)
| 107 | * @throws AssertionError if the given {@code Map} is empty. |
| 108 | */ |
| 109 | public void assertNotEmpty(AssertionInfo info, Map<?, ?> actual) { |
| 110 | assertNotNull(info, actual); |
| 111 | if (!actual.isEmpty()) { |
| 112 | return; |
| 113 | } |
| 114 | throw failures.failure(info, shouldNotBeEmpty()); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Asserts that the number of entries in the given {@code Map} is equal to the expected one. |