ThrowingCallable throws no exception.
The class itself does not do much, it delegates the work to ThrowableAssert after calling isThrownBy(ThrowingCallable).
ThrowableTypeAssert
| Modifier and Type | Field and Description |
|---|---|
| protected Description |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public NotThrownAssert | describedAs(Description
the new description to set. description)Implements org. |
| public void | isThrownBy(final ThrowableAssert.
code not throwing any exception codeAssert that no exception of any type is thrown by the |
| description | back to summary |
|---|---|
| protected Description description | |
| NotThrownAssert | back to summary |
|---|---|
| public NotThrownAssert() | |
| describedAs | back to summary |
|---|---|
| public NotThrownAssert describedAs(Description description) Implements org. Doc from org. Sets the description of the assertion that is going to be called after. You must set it before calling the assertion otherwise it is ignored as the failing assertion breaks the chained call by throwing an AssertionError.
This overloaded version of "describedAs" offers more flexibility than the one taking a
| |
| isThrownBy | back to summary |
|---|---|
| public void isThrownBy(final ThrowableAssert. Assert that no exception of any type is thrown by the Example:
| |