Searched refs:subclassesOf (Results 1 – 5 of 5) sorted by relevance
29 import static com.google.inject.matcher.Matchers.subclassesOf;89 assertTrue(subclassesOf(Runnable.class).matches(Runnable.class)); in testSubclassesOf()90 assertTrue(subclassesOf(Runnable.class).matches(MyRunnable.class)); in testSubclassesOf()91 assertFalse(subclassesOf(Runnable.class).matches(Object.class)); in testSubclassesOf()92 assertEquals("subclassesOf(Runnable.class)", subclassesOf(Runnable.class).toString()); in testSubclassesOf()93 assertEqualsBothWays(subclassesOf(Runnable.class), subclassesOf(Runnable.class)); in testSubclassesOf()94 assertFalse(subclassesOf(Runnable.class).equals(subclassesOf(Object.class))); in testSubclassesOf()156 assertEqualWhenReserialized(subclassesOf(AbstractList.class)); in testSerialization()
200 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType()219 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
74 Matchers.subclassesOf(Enum.class), in prepareBuiltInConverters()
184 public static Matcher<Class> subclassesOf(final Class<?> superclass) { in subclassesOf() method in Matchers
731 final Matcher<Class> classMatcher = Matchers.subclassesOf(List.class); in testBindIntercepor()