Home
last modified time | relevance | path

Searched refs:typeCompatibleWith (Results 1 – 3 of 3) sorted by relevance

/external/hamcrest/hamcrest-library/src/test/java/org/hamcrest/object/
DIsCompatibleTypeTest.java7 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()
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/object/
DIsCompatibleType.java38 public static <T> Matcher<Class<?>> typeCompatibleWith(Class<T> baseType) { in typeCompatibleWith() method in IsCompatibleType
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
DMatchers.java1492 …public static <T> org.hamcrest.Matcher<java.lang.Class<?>> typeCompatibleWith(java.lang.Class<T> b… in typeCompatibleWith() method in Matchers
1493 return org.hamcrest.object.IsCompatibleType.<T>typeCompatibleWith(baseType); in typeCompatibleWith()