Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertNotNull

extends Object
Class Inheritance
Static Imports
org.junit.jupiter.api.AssertionFailureBuilder.assertionFailure

AssertNotNull is a collection of utility methods that support asserting that there is an object.
Since
5.0

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
private static void
failNull(@Nullable Object messageOrSupplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertNotNullback to summary
private AssertNotNull()

Method Detail

assertNotNullback to summary
pack-priv static void assertNotNull(@Nullable Object actual)
Annotations
@Contract:null -> fail
assertNotNullback to summary
pack-priv static void assertNotNull(@Nullable Object actual, @Nullable String message)
Annotations
@Contract:null, _ -> fail
assertNotNullback to summary
pack-priv static void assertNotNull(@Nullable Object actual, Supplier<@Nullable String> messageSupplier)
Annotations
@Contract:null, _ -> fail
failNullback to summary
private static void failNull(@Nullable Object messageOrSupplier)