@Test public void testMatch() throws Exception { when(matcher.matches(TypeDescription.ForLoadedType.of(object.getClass()))).thenReturn(true); assertThat(new InstanceTypeMatcher<Object>(matcher).matches(object), is(true)); }
public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); }
InstanceTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); } }
InstanceTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); } InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher); }
InstanceTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); } InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher); boolean matches(T target); @Override String toString(); }
InstanceTypeMatcher extends ElementMatcher.Junction.AbstractBase<T> { public boolean matches(T target) { return target != null && matcher.matches(TypeDescription.ForLoadedType.of(target.getClass())); } InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher); boolean matches(T target); @Override String toString();  }