@Test public void testNoMatch() throws Exception { when(nameMatcher.matches(FOO)).thenReturn(false); assertThat(new NameMatcher<NamedElement>(nameMatcher).matches(namedElement), is(false)); verify(nameMatcher).matches(FOO); verifyNoMoreInteractions(nameMatcher); }
public boolean matches(T target) { return matcher.matches(target.getActualName()); }
NameMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getActualName()); } }
NameMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getActualName()); } NameMatcher(ElementMatcher<String> matcher); }
NameMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getActualName()); } NameMatcher(ElementMatcher<String> matcher); boolean matches(T target); @Override String toString(); }
NameMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return matcher.matches(target.getActualName()); } NameMatcher(ElementMatcher<String> matcher); boolean matches(T target); @Override String toString();  }