@Test public void evaluatesToTheTheLogicalNegationOfAnotherMatcher() { final Matcher<String> matcher = not(equalTo("A")); assertMatches(matcher, "B"); assertDoesNotMatch(matcher, "A"); }
public static <T> Matcher<T> not(Matcher<T> matcher) { return new IsNot<T>(matcher); }
IsNot extends BaseMatcher<T> { public static <T> Matcher<T> not(Matcher<T> matcher) { return new IsNot<T>(matcher); } }
IsNot extends BaseMatcher<T> { public static <T> Matcher<T> not(Matcher<T> matcher) { return new IsNot<T>(matcher); } IsNot(Matcher<T> matcher); }
IsNot extends BaseMatcher<T> { public static <T> Matcher<T> not(Matcher<T> matcher) { return new IsNot<T>(matcher); } IsNot(Matcher<T> matcher); @Override boolean matches(Object arg); @Override void describeTo(Description description); static Matcher<T> not(Matcher<T> matcher); static Matcher<T> not(T value); }
IsNot extends BaseMatcher<T> { public static <T> Matcher<T> not(Matcher<T> matcher) { return new IsNot<T>(matcher); } IsNot(Matcher<T> matcher); @Override boolean matches(Object arg); @Override void describeTo(Description description); static Matcher<T> not(Matcher<T> matcher); static Matcher<T> not(T value);  }