Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertionUtils

extends Object
Class Inheritance
Static Imports
java.util.stream.Collectors.joining

AssertionUtils is a collection of utility methods that are common to all assertion implementations.
Since
5.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
assertValidDelta(float delta)

pack-priv static void
assertValidDelta(double delta)

pack-priv static boolean
doublesAreEqual(double value1, double value2, double delta)

pack-priv static boolean
doublesAreEqual(double value1, double value2)

pack-priv static void
fail()

pack-priv static void
pack-priv static void
pack-priv static void
pack-priv static void
fail(Supplier<@Nullable String> messageSupplier)

private static void
pack-priv static boolean
floatsAreEqual(float value1, float value2, float delta)

pack-priv static boolean
floatsAreEqual(float value1, float value2)

pack-priv static String
pack-priv static String
pack-priv static @Nullable String
pack-priv static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertionUtilsback to summary
private AssertionUtils()

Method Detail

assertValidDeltaback to summary
pack-priv static void assertValidDelta(float delta)
assertValidDeltaback to summary
pack-priv static void assertValidDelta(double delta)
doublesAreEqualback to summary
pack-priv static boolean doublesAreEqual(double value1, double value2, double delta)
doublesAreEqualback to summary
pack-priv static boolean doublesAreEqual(double value1, double value2)
failback to summary
pack-priv static void fail()
Annotations
@Contract: -> fail
failback to summary
pack-priv static void fail(@Nullable String message)
Annotations
@Contract:_ -> fail
failback to summary
pack-priv static void fail(@Nullable String message, @Nullable Throwable cause)
Annotations
@Contract:_, _ -> fail
failback to summary
pack-priv static void fail(@Nullable Throwable cause)
Annotations
@Contract:_ -> fail
failback to summary
pack-priv static void fail(Supplier<@Nullable String> messageSupplier)
Annotations
@Contract:_ -> fail
failIllegalDeltaback to summary
private static void failIllegalDelta(String delta)
floatsAreEqualback to summary
pack-priv static boolean floatsAreEqual(float value1, float value2, float delta)
floatsAreEqualback to summary
pack-priv static boolean floatsAreEqual(float value1, float value2)
formatIndexesback to summary
pack-priv static String formatIndexes(@Nullable Deque<Integer> indexes)
getCanonicalNameback to summary
pack-priv static String getCanonicalName(Class<?> clazz)
nullSafeGetback to summary
pack-priv static @Nullable String nullSafeGet(@Nullable Supplier<@Nullable String> messageSupplier)
objectsAreEqualback to summary
pack-priv static boolean objectsAreEqual(@Nullable Object obj1, @Nullable Object obj2)