class AssertDoesNotThrow
extends java.lang.Object
AssertDoesNotThrow
is a collection of utility methods that support
explicitly asserting that a given code block does not throw an exception.Modifier | Constructor and Description |
---|---|
private |
AssertDoesNotThrow() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
assertDoesNotThrow(Executable executable) |
private static void |
assertDoesNotThrow(Executable executable,
java.lang.Object messageOrSupplier) |
(package private) static void |
assertDoesNotThrow(Executable executable,
java.lang.String message) |
(package private) static void |
assertDoesNotThrow(Executable executable,
java.util.function.Supplier<java.lang.String> messageSupplier) |
(package private) static <T> T |
assertDoesNotThrow(ThrowingSupplier<T> supplier) |
private static <T> T |
assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.Object messageOrSupplier) |
(package private) static <T> T |
assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.lang.String message) |
(package private) static <T> T |
assertDoesNotThrow(ThrowingSupplier<T> supplier,
java.util.function.Supplier<java.lang.String> messageSupplier) |
private static java.lang.String |
buildSuffix(java.lang.String message) |
private static org.opentest4j.AssertionFailedError |
createAssertionFailedError(java.lang.Object messageOrSupplier,
java.lang.Throwable t) |
static void assertDoesNotThrow(Executable executable)
static void assertDoesNotThrow(Executable executable, java.lang.String message)
static void assertDoesNotThrow(Executable executable, java.util.function.Supplier<java.lang.String> messageSupplier)
private static void assertDoesNotThrow(Executable executable, java.lang.Object messageOrSupplier)
static <T> T assertDoesNotThrow(ThrowingSupplier<T> supplier)
static <T> T assertDoesNotThrow(ThrowingSupplier<T> supplier, java.lang.String message)
static <T> T assertDoesNotThrow(ThrowingSupplier<T> supplier, java.util.function.Supplier<java.lang.String> messageSupplier)
private static <T> T assertDoesNotThrow(ThrowingSupplier<T> supplier, java.lang.Object messageOrSupplier)
private static org.opentest4j.AssertionFailedError createAssertionFailedError(java.lang.Object messageOrSupplier, java.lang.Throwable t)
private static java.lang.String buildSuffix(java.lang.String message)