@Test public void copesWithNullsAndUnknownTypes() { Matcher<String> matcher = sameInstance("irrelevant"); assertNullSafe(matcher); assertUnknownTypeSafe(matcher); }
public static <T> Matcher<T> sameInstance(T target) { return new IsSame<T>(target); }
IsSame extends BaseMatcher<T> { public static <T> Matcher<T> sameInstance(T target) { return new IsSame<T>(target); } }
IsSame extends BaseMatcher<T> { public static <T> Matcher<T> sameInstance(T target) { return new IsSame<T>(target); } IsSame(T object); }
IsSame extends BaseMatcher<T> { public static <T> Matcher<T> sameInstance(T target) { return new IsSame<T>(target); } IsSame(T object); @Override boolean matches(Object arg); @Override void describeTo(Description description); static Matcher<T> sameInstance(T target); static Matcher<T> theInstance(T target); }
IsSame extends BaseMatcher<T> { public static <T> Matcher<T> sameInstance(T target) { return new IsSame<T>(target); } IsSame(T object); @Override boolean matches(Object arg); @Override void describeTo(Description description); static Matcher<T> sameInstance(T target); static Matcher<T> theInstance(T target);  }