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