public class HasClassInHierarchy extends org.hamcrest.DiagnosingMatcher<Object>
Similar to IsInstanceOf but useful when there is not access to the class that has to be matched,
for example, when the class is not exposed on the API.
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
protected boolean |
matches(Object item,
org.hamcrest.Description mismatch) |
static <T> org.hamcrest.Matcher<T> |
withClassName(String expectedClassName) |
protected boolean matches(Object item, org.hamcrest.Description mismatch)
matches in class org.hamcrest.DiagnosingMatcher<Object>public void describeTo(org.hamcrest.Description description)
public static <T> org.hamcrest.Matcher<T> withClassName(String expectedClassName)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.