static AbstractThrowableAssert<?,? extends Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
static AbstractThrowableAssert<?,? extends Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
AbstractThrowableAssert<?,? extends Throwable> |
Java6AbstractStandardSoftAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
AbstractThrowableAssert<?,? extends Throwable> |
Java6AbstractStandardSoftAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
static AbstractThrowableAssert<?,? extends Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Deprecated.
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
static AbstractThrowableAssert<?,? extends Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Deprecated.
Allows to capture and then assert on a Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
default AbstractThrowableAssert<?,? extends Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like assertThatThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
static <T> T |
Assertions.fail(String failureMessage) |
|
static <T> T |
Assertions.fail(String failureMessage,
Object... args) |
|
static <T> T |
Assertions.fail(String failureMessage,
Throwable realCause) |
|
default <T> T |
WithAssertions.fail(String failureMessage) |
|
default <T> T |
WithAssertions.fail(String failureMessage,
Object... args) |
|
default <T> T |
WithAssertions.fail(String failureMessage,
Throwable realCause) |
|
static <T> T |
Assertions.failBecauseExceptionWasNotThrown(Class<? extends Throwable> throwableClass) |
Throws an AssertionError with a message explaining that a Throwable of given class was expected to be thrown
but had not been.
|
default <T> T |
WithAssertions.failBecauseExceptionWasNotThrown(Class<? extends Throwable> throwableClass) |
Throws an AssertionError with a message explaining that a Throwable of given class was expected to be thrown
but had not been.
|
static <T> T |
Assertions.shouldHaveThrown(Class<? extends Throwable> throwableClass) |
Throws an AssertionError with a message explaining that a Throwable of given class was expected to be thrown
but had not been.
|
default <T> T |
WithAssertions.shouldHaveThrown(Class<? extends Throwable> throwableClass) |
Throws an AssertionError with a message explaining that a Throwable of given class was expected to be thrown
but had not been.
|
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
AbstractThrowableAssert<?,? extends Throwable> |
Java6AbstractBDDSoftAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
AbstractThrowableAssert<?,? extends Throwable> |
Java6AbstractBDDSoftAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Allows to capture and then assert on a Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|
static AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Deprecated.
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
static AbstractThrowableAssert<?,? extends Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
String description,
Object... args) |
Deprecated.
Allows to capture and then assert on a Throwable like thenThrownBy(ThrowingCallable) but this method
let you set the assertion description the same way you do with as(String, Object...) .
|