package org.junit.jupiter.api;
import static org.junit.jupiter.api.AssertionUtils.buildPrefix;
import static org.junit.jupiter.api.AssertionUtils.fail;
import static org.junit.jupiter.api.AssertionUtils.nullSafeGet;
import java.util.function.BooleanSupplier;
import java.util.function.Supplier;
class AssertFalse {
private static final String EXPECTED_FALSE = "expected: <false> but was: <true>";
private AssertFalse() {
}
static void assertFalse(boolean condition) {
assertFalse(condition, (String) null);
}
static void assertFalse(boolean condition, String message) {
if (condition) {
fail(buildPrefix(message) + EXPECTED_FALSE);
}
}
static void assertFalse(boolean condition, Supplier<String> messageSupplier) {
if (condition) {
fail(buildPrefix(nullSafeGet(messageSupplier)) + EXPECTED_FALSE);
}
}
static void assertFalse(BooleanSupplier booleanSupplier) {
assertFalse(booleanSupplier.getAsBoolean(), (String) null);
}
static void assertFalse(BooleanSupplier booleanSupplier, String message) {
assertFalse(booleanSupplier.getAsBoolean(), message);
}
static void assertFalse(BooleanSupplier booleanSupplier, Supplier<String> messageSupplier) {
assertFalse(booleanSupplier.getAsBoolean(), messageSupplier);
}
}