Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertDoesNotThrow

extends Object
Class Inheritance
Static Imports
org.apiguardian.api.API.Status.INTERNAL, org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure

AssertDoesNotThrow is a collection of utility methods that support explicitly asserting that a given code block does not throw an exception.
Since
5.2

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
pack-priv static void
pack-priv static void
assertDoesNotThrow(Executable executable, Supplier<@Nullable String> messageSupplier)

private static void
assertDoesNotThrow(Executable executable, @Nullable Object messageOrSupplier)

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
assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable Object messageOrSupplier)

private static String
public static AssertionFailedError
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertDoesNotThrowback to summary
private AssertDoesNotThrow()

Method Detail

assertDoesNotThrowback to summary
pack-priv static void assertDoesNotThrow(Executable executable)
assertDoesNotThrowback to summary
pack-priv static void assertDoesNotThrow(Executable executable, @Nullable String message)
assertDoesNotThrowback to summary
pack-priv static void assertDoesNotThrow(Executable executable, Supplier<@Nullable String> messageSupplier)
assertDoesNotThrowback to summary
private static void assertDoesNotThrow(Executable executable, @Nullable Object messageOrSupplier)
assertDoesNotThrowback to summary
pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier)
assertDoesNotThrowback to summary
pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable String message)
assertDoesNotThrowback to summary
pack-priv static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, Supplier<@Nullable String> messageSupplier)
assertDoesNotThrowback to summary
private static <T extends @Nullable Object> T assertDoesNotThrow(ThrowingSupplier<T> supplier, @Nullable Object messageOrSupplier)
buildSuffixback to summary
private static String buildSuffix(@Nullable String message)
createAssertionFailedErrorback to summary
public static AssertionFailedError createAssertionFailedError(@Nullable Object messageOrSupplier, Throwable t)
Annotations
@API
status:INTERNAL
since:6.0