/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.theInstance(target); }
@Test public void alternativeFactoryMethodAlsoMatchesOnlyIfArgumentIsReferenceToASpecifiedObject() { Object o1 = new Object(); Matcher<Object> matcher = theInstance(o1); assertMatches(matcher, o1); assertDoesNotMatch(matcher, new Object()); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }
/** * Creates a matcher that matches only when the examined object is the same instance as * the specified target object. * * @param target * the target instance against which others should be assessed */ public static <T> org.hamcrest.Matcher<T> theInstance(T target) { return org.hamcrest.core.IsSame.<T>theInstance(target); }