@Test public void usesDescriptionOfNegatedMatcherWithPrefix() { assertDescription("not an instance of java.lang.String", not(instanceOf(String.class))); assertDescription("not \"A\"", not("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);  }