@Test public void testMatch() throws Exception { when(typeDescription.getInheritedAnnotations()).thenReturn(annotationList); when(annotationMatcher.matches(annotationList)).thenReturn(true); assertThat(new InheritedAnnotationMatcher<TypeDescription>(annotationMatcher).matches(typeDescription), is(true)); verify(annotationMatcher).matches(annotationList); verifyNoMoreInteractions(annotationMatcher); verify(typeDescription).getInheritedAnnotations(); verifyNoMoreInteractions(typeDescription); }
public boolean matches(T target) { return matcher.matches(target.getInheritedAnnotations()); }
InheritedAnnotationMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getInheritedAnnotations()); } }
InheritedAnnotationMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getInheritedAnnotations()); } InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher); }
InheritedAnnotationMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getInheritedAnnotations()); } InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher); boolean matches(T target); @Override String toString(); }
InheritedAnnotationMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getInheritedAnnotations()); } InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher); boolean matches(T target); @Override String toString();  }