@Test public void testNoMatch() throws Exception { when(typeMatcher.matches(returnType)).thenReturn(false); assertThat(new MethodReturnTypeMatcher<MethodDescription>(typeMatcher).matches(methodDescription), is(false)); verify(typeMatcher).matches(returnType); verifyNoMoreInteractions(typeMatcher); }
public boolean matches(T target) { return matcher.matches(target.getReturnType()); }
MethodReturnTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getReturnType()); } }
MethodReturnTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getReturnType()); } MethodReturnTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); }
MethodReturnTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getReturnType()); } MethodReturnTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString(); }
MethodReturnTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getReturnType()); } MethodReturnTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher); boolean matches(T target); @Override String toString();  }