@Test @SuppressWarnings("unchecked") public void testNoMatch() throws Exception { when(typeDescription.getDeclaredMethods()).thenReturn((MethodList) methodList); when(methodMatcher.matches(methodList)).thenReturn(false); assertThat(new DeclaringMethodMatcher<TypeDescription>(methodMatcher).matches(typeDescription), is(false)); verify(methodMatcher).matches(methodList); verifyNoMoreInteractions(methodMatcher); verify(typeDescription).getDeclaredMethods(); verifyNoMoreInteractions(typeDescription); }
public boolean matches(T target) { return matcher.matches(target.getDeclaredMethods()); }
DeclaringMethodMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getDeclaredMethods()); } }
DeclaringMethodMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getDeclaredMethods()); } DeclaringMethodMatcher(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher); }
DeclaringMethodMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getDeclaredMethods()); } DeclaringMethodMatcher(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher); boolean matches(T target); @Override String toString(); }
DeclaringMethodMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getDeclaredMethods()); } DeclaringMethodMatcher(ElementMatcher<? super MethodList<? extends MethodDescription>> matcher); boolean matches(T target); @Override String toString();  }