@Test public void hasUntypedVariant() { Object original = 10; assertMatches(equalToObject(10), original); assertDoesNotMatch(equalToObject(0), original); assertDoesNotMatch(equalToObject("10"), original); assertDoesNotMatch(equalToObject(10), "10"); }
public static Matcher<Object> equalToObject(Object operand) { return new IsEqual<>(operand); }
IsEqual extends BaseMatcher<T> { public static Matcher<Object> equalToObject(Object operand) { return new IsEqual<>(operand); } }
IsEqual extends BaseMatcher<T> { public static Matcher<Object> equalToObject(Object operand) { return new IsEqual<>(operand); } IsEqual(T equalArg); }
IsEqual extends BaseMatcher<T> { public static Matcher<Object> equalToObject(Object operand) { return new IsEqual<>(operand); } IsEqual(T equalArg); @Override boolean matches(Object actualValue); @Override void describeTo(Description description); static Matcher<T> equalTo(T operand); static Matcher<Object> equalToObject(Object operand); }
IsEqual extends BaseMatcher<T> { public static Matcher<Object> equalToObject(Object operand) { return new IsEqual<>(operand); } IsEqual(T equalArg); @Override boolean matches(Object actualValue); @Override void describeTo(Description description); static Matcher<T> equalTo(T operand); static Matcher<Object> equalToObject(Object operand);  }