@SafeVarargs @Override public final MapAssert<KEY, VALUE> doesNotContainKeys(KEY... keys) { return super.doesNotContainKeys(keys); }
/** * Verifies that the actual map does not contain the given key. * <p> * Example : * <pre><code class='java'> Map<Ring, TolkienCharacter> elvesRingBearers = new HashMap<>(); * elvesRingBearers.put(nenya, galadriel); * elvesRingBearers.put(narya, gandalf); * elvesRingBearers.put(vilya, elrond); * * // assertion will pass * assertThat(elvesRingBearers).doesNotContainKey(oneRing); * * // assertion will fail * assertThat(elvesRingBearers).doesNotContainKey(vilya);</code></pre> * * @param key the given key * @return {@code this} assertions object * @throws AssertionError if the actual map is {@code null}. * @throws AssertionError if the actual map contains the given key. */ @SuppressWarnings("unchecked") public SELF doesNotContainKey(K key) { return doesNotContainKeys(key); }
/** * Verifies that the actual map does not contain the given key. * <p> * Example : * <pre><code class='java'> Map<Ring, TolkienCharacter> elvesRingBearers = new HashMap<>(); * elvesRingBearers.put(nenya, galadriel); * elvesRingBearers.put(narya, gandalf); * elvesRingBearers.put(vilya, elrond); * * // assertion will pass * assertThat(elvesRingBearers).doesNotContainKey(oneRing); * * // assertion will fail * assertThat(elvesRingBearers).doesNotContainKey(vilya);</code></pre> * * @param key the given key * @return {@code this} assertions object * @throws AssertionError if the actual map is {@code null}. * @throws AssertionError if the actual map contains the given key. */ @SuppressWarnings("unchecked") public SELF doesNotContainKey(K key) { return doesNotContainKeys(key); }
@SafeVarargs @Override public final MapAssert<KEY, VALUE> doesNotContainKeys(KEY... keys) { return super.doesNotContainKeys(keys); }
/** * Verifies that the actual map does not contain the given key. * <p> * Example : * * <pre><code class='java'> * Map<Ring, TolkienCharacter> ringBearers = ... // init with elves rings only * * assertThat(ringBearers).doesNotContainKey(oneRing); * </code></pre> * * @param key the given key * @throws AssertionError if the actual map is {@code null}. * @throws AssertionError if the actual map contains the given key. */ public S doesNotContainKey(K key) { return doesNotContainKeys(key); }