public class IsCompatibleType<T> extends TypeSafeMatcher<Class<?>>
| Constructor and Description |
|---|
IsCompatibleType(Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeMismatchSafely(Class<?> cls,
Description mismatchDescription)
Subclasses should override this.
|
void |
describeTo(Description description)
Generates a description of the object.
|
boolean |
matchesSafely(Class<?> cls)
Subclasses should implement this.
|
static <T> Matcher<Class<?>> |
typeCompatibleWith(Class<T> baseType) |
describeMismatch, matches_dont_implement_Matcher___instead_extend_BaseMatcher_, toStringpublic boolean matchesSafely(Class<?> cls)
TypeSafeMatchermatchesSafely in class TypeSafeMatcher<Class<?>>public void describeMismatchSafely(Class<?> cls, Description mismatchDescription)
TypeSafeMatcherdescribeMismatchSafely in class TypeSafeMatcher<Class<?>>public void describeTo(Description description)
SelfDescribingdescription - The description to be built or appended to.Copyright © 2016. All rights reserved.