src/main/java/org/fest/assertions/MapAssert.java
public @NotNull MapAssert excludes(@NotNull Entry... entries) {
    isNotNull();
    checkNotNull(entries);
    List<Entry> found = newArrayList();
    for (Entry e : entries) {
      if (containsEntry(checkNotNull(e))) {
        found.add(e);
      }
    }
    if (!found.isEmpty()) {
      failIfFound(entryOrEntries(found), found);
    }
    return this;
  }
public @NotNull MapAssert excludes(@NotNull Entry... entries) {
    isNotNull();
    checkNotNull(entries);
    List<Entry> found = newArrayList();
    for (Entry e : entries) {
      if (containsEntry(checkNotNull(e))) {
        found.add(e);
      }
    }
    if (!found.isEmpty()) {
      failIfFound(entryOrEntries(found), found);
    }
    return this;
  }
public @ NotNull MapAssert excludes ( @ NotNull Entry ... entries ) { isNotNull ( ) ; checkNotNull ( entries ) ; List < Entry > found = newArrayList ( ) ; for ( Entry e : entries ) { if ( containsEntry ( checkNotNull ( e ) ) ) { found . add ( e ) ; } } if ( ! found . isEmpty ( ) ) { failIfFound ( entryOrEntries ( found ) , found ) ; } return this ; }
Verifies that the actual {@code Map} does not contain the given entries.
<p/>
Example:
<pre>
// static import org.fest.assertions.Assertions.*;
// static import org.fest.assertions.MapAssert.*;

assertThat(myMap).{@link #excludes(org.fest.assertions.MapAssert.Entry...) excludes}({@link #entry(Object, Object) entry}(&quot;jedi&quot;, yoda), {@link #entry(Object, Object) entry}(&quot;sith&quot;, anakin));
</pre>

@param entries the given entries.
@return this assertion error.
@throws AssertionError       if the actual map is {@code null}.
@throws AssertionError       if the actual {@code Map} contains any of the given entries.
@throws NullPointerException if the given array of entries is {@code null}.
@throws NullPointerException if any of the entries in the given array is {@code null}.
Verifies that the actual { @code Map } does not contain the given entries . <p / > Example : <pre > // static import org . fest . assertions . Assertions . * ; // static import org . fest . assertions . MapAssert . * ;