Searched refs:typeCompatibleWith (Results 1 – 3 of 3) sorted by relevance
7 import static org.hamcrest.object.IsCompatibleType.typeCompatibleWith;27 return typeCompatibleWith(BaseClass.class); in createMatcher()31 assertThat(BaseClass.class, typeCompatibleWith(BaseClass.class)); in testMatchesSameClass()35 assertThat(BaseInterface.class, typeCompatibleWith(BaseInterface.class)); in testMatchesSameInterface()39 assertThat(ExtendedClass.class, typeCompatibleWith(BaseClass.class)); in testMatchesExtendedClass()43 assertThat(ClassImplementingBaseInterface.class, typeCompatibleWith(BaseInterface.class)); in testMatchesClassImplementingInterface()47 assertThat(ExtendedInterface.class, typeCompatibleWith(BaseInterface.class)); in testMatchesExtendedInterface()56 assertDescription("type < java.lang.Runnable", typeCompatibleWith(Runnable.class)); in testHasReadableDescription()
38 public static <T> Matcher<Class<?>> typeCompatibleWith(Class<T> baseType) { in typeCompatibleWith() method in IsCompatibleType
1492 …public static <T> org.hamcrest.Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> b… in typeCompatibleWith() method in Matchers1493 return org.hamcrest.object.IsCompatibleType.<T>typeCompatibleWith(baseType); in typeCompatibleWith()