| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | describeMismatchSafely(Class<?> cls, Description mismatchDescription)
Overrides org. |
| public void | describeTo(Description
The description to be built or appended to. description)Implements org. |
| public boolean | matchesSafely(Class<?> cls)
Implements abstract org. |
| public static <T> Matcher | typeCompatibleWith(Class<T>
the base class to examine classes against baseType)Creates a matcher of |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| IsCompatibleType | back to summary |
|---|---|
| public IsCompatibleType(Class<T> type) | |
| describeMismatchSafely | back to summary |
|---|---|
| public void describeMismatchSafely(Class<?> cls, Description mismatchDescription) Overrides org. Doc from org. Subclasses should override this. The item will already have been checked for the specific type and will never be null.
| |
| describeTo | back to summary |
|---|---|
| public void describeTo(Description description) Implements org. Doc from org. Generates a description of the object. The description may be part of a a description of a larger object of which this is just a component, so it should be worded appropriately.
| |
| matchesSafely | back to summary |
|---|---|
| public boolean matchesSafely(Class<?> cls) Implements abstract org. Doc from org. Subclasses should implement this. The item will already have been checked for the specific type and will never be null.
| |
| typeCompatibleWith | back to summary |
|---|---|
| public static <T> Matcher Creates a matcher of assertThat(Integer.class, typeCompatibleWith(Number.class))
| |