|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.camel.hamcrest.Assertions
public final class Assertions
A set of useful assertions you can use when testing
| Method Summary | ||
|---|---|---|
static
|
assertInstanceOf(Object value,
Class<T> type)
Performs the assertion that the given value is an instance of the specified type |
|
static
|
assertInstanceOf(String message,
Object value,
Class<T> type)
Performs the assertion that the given value is an instance of the specified type |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T assertInstanceOf(Object value,
Class<T> type)
value - the value to be comparedtype - the type to assert
AssertionError - if the instance is not of the correct type
public static <T> T assertInstanceOf(String message,
Object value,
Class<T> type)
message - the description of the valuevalue - the value to be comparedtype - the type to assert
AssertionError - if the instance is not of the correct type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||