Top Description Constructors Methods
org.junit.jupiter.api

pack-priv Class AssertTrue

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

AssertTrue is a collection of utility methods that support asserting true in tests.
Since
5.0

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
assertTrue(boolean condition)

pack-priv static void
assertTrue(boolean condition, @Nullable String message)

pack-priv static void
assertTrue(boolean condition, Supplier<@Nullable String> messageSupplier)

pack-priv static void
assertTrue(BooleanSupplier booleanSupplier)

pack-priv static void
assertTrue(BooleanSupplier booleanSupplier, @Nullable String message)

pack-priv static void
assertTrue(BooleanSupplier booleanSupplier, Supplier<@Nullable String> messageSupplier)

private static void
failNotTrue(@Nullable Object messageOrSupplier)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AssertTrueback to summary
private AssertTrue()

Method Detail

assertTrueback to summary
pack-priv static void assertTrue(boolean condition)
Annotations
@Contract:false -> fail
assertTrueback to summary
pack-priv static void assertTrue(boolean condition, @Nullable String message)
Annotations
@Contract:false, _ -> fail
assertTrueback to summary
pack-priv static void assertTrue(boolean condition, Supplier<@Nullable String> messageSupplier)
Annotations
@Contract:false, _ -> fail
assertTrueback to summary
pack-priv static void assertTrue(BooleanSupplier booleanSupplier)
assertTrueback to summary
pack-priv static void assertTrue(BooleanSupplier booleanSupplier, @Nullable String message)
assertTrueback to summary
pack-priv static void assertTrue(BooleanSupplier booleanSupplier, Supplier<@Nullable String> messageSupplier)
failNotTrueback to summary
private static void failNotTrue(@Nullable Object messageOrSupplier)