Searched refs:sameInstance (Results 1 – 6 of 6) sorted by relevance
7 import static org.hamcrest.core.IsSame.sameInstance;15 Matcher<String> matcher = sameInstance("irrelevant"); in copesWithNullsAndUnknownTypes()24 Matcher<Object> matcher = sameInstance(o1); in evaluatesToTrueIfArgumentIsReferenceToASpecifiedObject()41 assertDescription("sameInstance(\"ARG\")", sameInstance("ARG")); in returnsReadableDescriptionFromToString()46 assertDescription("sameInstance(null)", sameInstance(null)); in returnsReadableDescriptionFromToStringWhenInitialisedWithNull()
12 import static org.hamcrest.CoreMatchers.sameInstance;101 exception.expect(sameInstance(expected)); in shouldStubWithThrowable()111 exception.expect(sameInstance(expected)); in shouldSetThrowableToVoidMethod()143 exception.expect(sameInstance(ioException)); in shouldAllowSettingCheckedException()
37 public static <T> Matcher<T> sameInstance(T target) { in sameInstance() method in IsSame
367 public static <T> org.hamcrest.Matcher<T> sameInstance(T target) { in sameInstance() method in CoreMatchers368 return org.hamcrest.core.IsSame.sameInstance(target); in sameInstance()
63 * Fix issue 101 - Added theInstance alias for sameInstance factory method
451 public static <T> org.hamcrest.Matcher<T> sameInstance(T target) { in sameInstance() method in Matchers452 return org.hamcrest.core.IsSame.<T>sameInstance(target); in sameInstance()