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