| Package | Description |
|---|---|
| org.assertj.core.api |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Assertions.fail(String failureMessage)
Throws an
AssertionError with the given message. |
static <T> T |
Assertions.fail(String failureMessage,
Object... args)
Throws an
AssertionError with the given message built as String.format(String, Object...). |
static <T> T |
Assertions.fail(String failureMessage,
Throwable realCause)
Throws an
AssertionError with the given message and with the Throwable that caused the failure. |
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. |
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. |
Copyright © 2014–2018 AssertJ. All rights reserved.