|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.atlassian.hamcrest.ClassMatchers
public final class ClassMatchers
Matchers useful when dealing with Classes.
| Constructor Summary | |
|---|---|
ClassMatchers()
|
|
| Method Summary | |
|---|---|
static org.hamcrest.Matcher<java.lang.Class<?>> |
isArray()
Creates and returns a Matcher which checks if the type being passed in is an array. |
static org.hamcrest.Matcher<java.lang.Class<?>> |
isAssignableTo(java.lang.Class<?> to)
Returns a Matcher which will match any class that is assignable to the given type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassMatchers()
| Method Detail |
|---|
public static org.hamcrest.Matcher<java.lang.Class<?>> isArray()
Matcher which checks if the type being passed in is an array.
Matcher which checks if the type being passed in is an arraypublic static final org.hamcrest.Matcher<java.lang.Class<?>> isAssignableTo(java.lang.Class<?> to)
Matcher which will match any class that is assignable to the given type.
to - type that must be assignable to
Matcher which will match any class that is assignable to the given type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||