@Test public void testNoMatch() throws Exception { when(otherType.isAssignableFrom(typeDescription)).thenReturn(false); assertThat(new SuperTypeMatcher<TypeDescription>(typeDescription).matches(otherType), is(false)); verify(otherType).isAssignableFrom(typeDescription); verifyNoMoreInteractions(otherType); verifyZeroInteractions(typeDescription); }
public boolean matches(T target) { return target.isAssignableFrom(typeDescription); }
SuperTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAssignableFrom(typeDescription); } }
SuperTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAssignableFrom(typeDescription); } SuperTypeMatcher(TypeDescription typeDescription); }
SuperTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAssignableFrom(typeDescription); } SuperTypeMatcher(TypeDescription typeDescription); boolean matches(T target); @Override String toString(); }
SuperTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAssignableFrom(typeDescription); } SuperTypeMatcher(TypeDescription typeDescription); boolean matches(T target); @Override String toString();  }