| Package | Description |
|---|---|
| com.oracle.bedrock.matchers |
| Modifier and Type | Method and Description |
|---|---|
ThrowableMatcher<T> |
ThrowableMatcher.causedBy(org.hamcrest.Matcher<? super Throwable> matcher)
Obtains a new
ThrowableMatcher that includes matching a cause of the
Throwable. |
static <T> ThrowableMatcher<T> |
ThrowableMatcher.willThrow(Class<? extends Throwable> throwableClass)
Obtains a
ThrowableMatcher for the specified class of Throwable. |
static <T> ThrowableMatcher<T> |
ThrowableMatcher.willThrow(org.hamcrest.Matcher<? super Throwable> matcher)
|
ThrowableMatcher<T> |
ThrowableMatcher.withMessage(org.hamcrest.Matcher<? super String> matcher)
Obtains a new
ThrowableMatcher that includes the matching the
Throwable.getMessage() |
ThrowableMatcher<T> |
ThrowableMatcher.withMessage(String message)
Obtains a new
ThrowableMatcher that includes matching the specified
message. |
Copyright © 2017. All rights reserved.