@Test public void testMatch() throws Exception { when(parameterMatcher.matches(typeDescription)).thenReturn(true); assertThat(new MethodParameterTypeMatcher<ParameterDescription>(parameterMatcher).matches(parameterDescription), is(true)); verify(parameterMatcher).matches(typeDescription); verifyNoMoreInteractions(parameterMatcher); }
public boolean matches(T target) { return matcher.matches(target.getType()); }
MethodParameterTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getType()); } }
MethodParameterTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getType()); } MethodParameterTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); }
MethodParameterTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getType()); } MethodParameterTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString(); }
MethodParameterTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getType()); } MethodParameterTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString();  }