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_, toString
public boolean matchesSafely(Class<?> cls)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<Class<?>>
public void describeMismatchSafely(Class<?> cls, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<Class<?>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.Copyright © 2016. All rights reserved.