| Package | Description |
|---|---|
| com.googlecode.catchexception.throwable |
This public package contains the primary API to catch and verify throwables.
|
| com.googlecode.catchexception.throwable.apis |
This public package contains alternative APIs to catch and verify throwables.
|
| Modifier and Type | Method and Description |
|---|---|
static Throwable |
ThrowableCaptor.captureThrowable(ThrowingCallable throwableThrower) |
static void |
CatchThrowable.catchThrowable(ThrowingCallable actor)
Use it to catch an throwable and to get access to the thrown throwable (for further verifications).
|
static void |
CatchThrowable.catchThrowable(ThrowingCallable actor,
Class<? extends Throwable> clazz)
Use it to catch an throwable of a specific type and to get access to the thrown throwable (for further
verifications).
|
private static void |
CatchThrowable.catchThrowable(ThrowingCallable actor,
Class<? extends Throwable> clazz,
boolean assertException) |
private static void |
CatchThrowable.validateArguments(ThrowingCallable actor,
Class<? extends Throwable> clazz) |
static void |
CatchThrowable.verifyThrowable(ThrowingCallable actor)
Use it to verify that an throwable is thrown and to get access to the thrown throwable (for further
verifications).
|
static void |
CatchThrowable.verifyThrowable(ThrowingCallable actor,
Class<? extends Throwable> clazz)
Use it to verify that an throwable of specific type is thrown and to get access to the thrown throwable (for
further verifications).
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BDDCatchThrowable.when(ThrowingCallable actor) |
Copyright © 2019. All rights reserved.