| Package | Description |
|---|---|
| tech.sirwellington.alchemy.test.junit |
| Modifier and Type | Method and Description |
|---|---|
static ThrowableAssertion |
ThrowableAssertion.assertThrows(ExceptionOperation operation)
Assert that a function throws an exception.
|
ThrowableAssertion |
ThrowableAssertion.containsInMessage(String messageString)
Assert that the exception contains a string in its message.
|
ThrowableAssertion |
ThrowableAssertion.hasCauseInstanceOf(Class<? extends Throwable> exceptionClass)
Asserts that the Exception has a cause of a particular type.
|
ThrowableAssertion |
ThrowableAssertion.hasMessage(String expectedMessage)
Checks to make sure the exception contains a certain message.
|
ThrowableAssertion |
ThrowableAssertion.hasNoCause()
Assert that the exception has no causing exception
|
ThrowableAssertion |
ThrowableAssertion.isInstanceOf(Class<? extends Throwable> exceptionClass)
Check that the Exception is of a particular type.
|
Copyright © 2015–2018 RedRoma, Inc.. All rights reserved.