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

Method failIfEmpty

src/main/java/org/assertj/core/internal/Maps.java:518–520  ·  view source on GitHub ↗
(K[] keys)

Source from the content-addressed store, hash-verified

516 }
517
518 private static <K> void failIfEmpty(K[] keys) {
519 if (keys.length == 0) throw new IllegalArgumentException("The array of keys to look for should not be empty");
520 }
521
522 private static <K, V> void failIfEmpty(MapEntry<? extends K, ? extends V>[] entries) {
523 if (entries.length == 0)

Callers 4

assertContainsOnlyMethod · 0.95
assertContainsExactlyMethod · 0.95
failIfNullOrEmptyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected