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