Searched refs:subclassesOf (Results 1 – 5 of 5) sorted by relevance
29 import static com.google.inject.matcher.Matchers.subclassesOf;94 assertTrue(subclassesOf(Runnable.class).matches(Runnable.class)); in testSubclassesOf()95 assertTrue(subclassesOf(Runnable.class).matches(MyRunnable.class)); in testSubclassesOf()96 assertFalse(subclassesOf(Runnable.class).matches(Object.class)); in testSubclassesOf()97 assertEquals("subclassesOf(Runnable.class)", subclassesOf(Runnable.class).toString()); in testSubclassesOf()98 assertEqualsBothWays(subclassesOf(Runnable.class), subclassesOf(Runnable.class)); in testSubclassesOf()99 assertFalse(subclassesOf(Runnable.class).equals(subclassesOf(Object.class))); in testSubclassesOf()161 assertEqualWhenReserialized(subclassesOf(AbstractList.class)); in testSerialization()
194 bindInterceptor(Matchers.subclassesOf(Baz.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType()211 bindInterceptor(Matchers.subclassesOf(BazImpl.class), Matchers.any(), interceptor); in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
68 convertToClasses(injector, Matchers.subclassesOf(Enum.class), new TypeConverter() { in prepareBuiltInConverters()
184 public static Matcher<Class> subclassesOf(final Class<?> superclass) { in subclassesOf() method in Matchers
691 final Matcher<Class> classMatcher = Matchers.subclassesOf(List.class); in testBindIntercepor()