AssertDoesNotThrow is a collection of utility methods that support
explicitly asserting that a given code block does not throw an exception.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static void | |
| pack-priv static void | |
| pack-priv static void | |
| private static void | |
| pack-priv static <T extends @Nullable Object> T | |
| pack-priv static <T extends @Nullable Object> T | |
| pack-priv static <T extends @Nullable Object> T | |
| private static <T extends @Nullable Object> T | |
| private static String | |
| public static AssertionFailedError |
| AssertDoesNotThrow | back to summary |
|---|---|
| private AssertDoesNotThrow() | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static void assertDoesNotThrow(Executable executable) | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static void assertDoesNotThrow(Executable executable, @Nullable String message) | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static void assertDoesNotThrow(Executable executable, Supplier<@Nullable String> messageSupplier) | |
| assertDoesNotThrow | back to summary |
|---|---|
| private static void assertDoesNotThrow(Executable executable, @Nullable Object messageOrSupplier) | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier) | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable String message) | |
| assertDoesNotThrow | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier) | |
| assertDoesNotThrow | back to summary |
|---|---|
| private static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable Object messageOrSupplier) | |
| buildSuffix | back to summary |
|---|---|
| private static String buildSuffix(@Nullable String message) | |
| createAssertionFailedError | back to summary |
|---|---|
| public static AssertionFailedError createAssertionFailedError(@Nullable Object messageOrSupplier, Throwable t) | |