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

Method assertHasSameSizeAs

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

Asserts that the number of entries in the given Map has the same size as the other Iterable. @param info contains information about the assertion. @param map the given Map. @param other the group to compare @throws AssertionError if the given Map is null. @th

(AssertionInfo info, Map<?, ?> map, Iterable<?> other)

Source from the content-addressed store, hash-verified

139 * @throws AssertionError if the number of entries in the given {@code Map} does not have the same size.
140 */
141 public void assertHasSameSizeAs(AssertionInfo info, Map<?, ?> map, Iterable<?> other) {
142 assertNotNull(info, map);
143 hasSameSizeAsCheck(info, map, other, map.size());
144 }
145
146 /**
147 * Asserts that the number of entries in the given {@code Map} has the same size as the other array.

Calls 4

assertNotNullMethod · 0.95
hasSameSizeAsCheckMethod · 0.80
assertIsArrayMethod · 0.80
sizeMethod · 0.45