@Test public void testNoMatch() throws Exception { when(parameterMatcher.matches(typeList)).thenReturn(false); assertThat(new MethodParameterTypesMatcher<ParameterList<?>>(parameterMatcher).matches(parameterList), is(false)); verify(parameterMatcher).matches(typeList); verifyNoMoreInteractions(parameterMatcher); }
public boolean matches(T target) { return matcher.matches(target.asTypeList()); }
MethodParameterTypesMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.asTypeList()); } }
MethodParameterTypesMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.asTypeList()); } MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher); }
MethodParameterTypesMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.asTypeList()); } MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher); boolean matches(T target); @Override String toString(); }
MethodParameterTypesMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.asTypeList()); } MethodParameterTypesMatcher(ElementMatcher<? super List<? extends TypeDescription.Generic>> matcher); boolean matches(T target); @Override String toString();  }