static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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 java.lang.Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
AssertionsForClassTypes.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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 java.lang.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 java.lang.Throwable> |
Java6Assertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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 java.lang.Throwable> |
Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6StandardSoftAssertionsProvider.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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...) .
|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
WithAssertions.assertThatThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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> ObjectAssert<T> |
Assertions.assertWith(T actual,
java.util.function.Consumer<T>... requirements) |
Uses the given instance as the instance under test for all the assertions expressed as the passed Consumer .
|
default <T> ObjectAssert<T> |
WithAssertions.assertWith(T actual,
java.util.function.Consumer<T>... requirements) |
Uses the given instance as the instance under test for all the assertions expressed as the passed Consumer .
|
<T> T |
AbstractSoftAssertions.fail(java.lang.String failureMessage) |
Fails with the given message.
|
<T> T |
AbstractSoftAssertions.fail(java.lang.String failureMessage,
java.lang.Object... args) |
Fails with the given message built like String.format(String, Object...) .
|
<T> T |
AbstractSoftAssertions.fail(java.lang.String failureMessage,
java.lang.Throwable realCause) |
Fails with the given message and with the Throwable that caused the failure.
|
static <T> T |
Assertions.fail(java.lang.String failureMessage) |
Throws an AssertionError with the given message.
|
static <T> T |
Assertions.fail(java.lang.String failureMessage,
java.lang.Object... args) |
Throws an AssertionError with the given message built as String.format(String, Object...) .
|
static <T> T |
Assertions.fail(java.lang.String failureMessage,
java.lang.Throwable realCause) |
Throws an AssertionError with the given message and with the Throwable that caused the failure.
|
static <T> T |
BDDAssertions.fail(java.lang.String failureMessage) |
Throws an AssertionError with the given message.
|
static <T> T |
BDDAssertions.fail(java.lang.String failureMessage,
java.lang.Object... args) |
Throws an AssertionError with the given message built as String.format(String, Object...) .
|
static <T> T |
BDDAssertions.fail(java.lang.String failureMessage,
java.lang.Throwable realCause) |
Throws an AssertionError with the given message and with the Throwable that caused the failure.
|
static <T> T |
Fail.fail(java.lang.String failureMessage) |
Throws an AssertionError with the given message.
|
static <T> T |
Fail.fail(java.lang.String failureMessage,
java.lang.Object... args) |
Throws an AssertionError with the given message built as String.format(String, Object...) .
|
static <T> T |
Fail.fail(java.lang.String failureMessage,
java.lang.Throwable realCause) |
Throws an AssertionError with the given message and with the Throwable that caused the failure.
|
default <T> T |
WithAssertions.fail(java.lang.String failureMessage) |
Throws an AssertionError with the given message.
|
default <T> T |
WithAssertions.fail(java.lang.String failureMessage,
java.lang.Object... args) |
Throws an AssertionError with the given message built as String.format(String, Object...) .
|
default <T> T |
WithAssertions.fail(java.lang.String failureMessage,
java.lang.Throwable realCause) |
Throws an AssertionError with the given message and with the Throwable that caused the failure.
|
static <T> T |
Assertions.failBecauseExceptionWasNotThrown(java.lang.Class<? extends java.lang.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 |
Fail.failBecauseExceptionWasNotThrown(java.lang.Class<? extends java.lang.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(java.lang.Class<? extends java.lang.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(java.lang.Class<? extends java.lang.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 |
BDDAssertions.shouldHaveThrown(java.lang.Class<? extends java.lang.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 |
Fail.shouldHaveThrown(java.lang.Class<? extends java.lang.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(java.lang.Class<? extends java.lang.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 java.lang.Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable (easier done with lambdas).
|
static AbstractThrowableAssert<?,? extends java.lang.Throwable> |
BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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 java.lang.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 java.lang.Throwable> |
Java6BDDAssertions.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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...) .
|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable) |
Allows to capture and then assert on a Throwable more easily when used with Java 8 lambdas.
|
default AbstractThrowableAssert<?,? extends java.lang.Throwable> |
Java6BDDSoftAssertionsProvider.thenThrownBy(ThrowableAssert.ThrowingCallable shouldRaiseThrowable,
java.lang.String description,
java.lang.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 <T> ObjectAssert<T> |
BDDAssertions.thenWith(T actual,
java.util.function.Consumer<T>... requirements) |
Uses the given instance as the instance under test for all the assertions expressed as the passed Consumer s.
|