@Test public void testMatch() throws Exception { when(byteCodeElement.isAccessibleTo(typeDescription)).thenReturn(true); assertThat(new AccessibilityMatcher<ByteCodeElement>(typeDescription).matches(byteCodeElement), is(true)); verify(byteCodeElement).isAccessibleTo(typeDescription); verifyNoMoreInteractions(byteCodeElement); verifyZeroInteractions(typeDescription); }
public boolean matches(T target) { return target.isAccessibleTo(typeDescription); }
AccessibilityMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAccessibleTo(typeDescription); } }
AccessibilityMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAccessibleTo(typeDescription); } AccessibilityMatcher(TypeDescription typeDescription); }
AccessibilityMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAccessibleTo(typeDescription); } AccessibilityMatcher(TypeDescription typeDescription); boolean matches(T target); @Override String toString(); }
AccessibilityMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target.isAccessibleTo(typeDescription); } AccessibilityMatcher(TypeDescription typeDescription); boolean matches(T target); @Override String toString();  }