| Constructor and Description |
|---|
Assert() |
| Modifier and Type | Method and Description |
|---|---|
static void |
assertArgFalse(String message,
boolean expression) |
static void |
assertArgGreaterThan(String message,
int argValue,
int num) |
static void |
assertArgGreaterThanOrEqualTo(String message,
int argValue,
int num) |
static void |
assertArgLessThan(String message,
int argValue,
int num) |
static void |
assertArgLessThanOrEqualTo(String message,
int argValue,
int num) |
static void |
assertArgNotNull(String message,
Object... objects) |
static void |
assertArgNotNull(String message,
Object obj) |
static void |
assertArgTrue(String message,
boolean expression) |
static <T> T |
assertNotNull(String message,
T value)
Returns the given
value if it is not null and throws an exception
otherwise. |
public Assert()
public static <T> T assertNotNull(String message, T value)
value if it is not null and throws an exception
otherwise.message - the error message used if value is nullvalue - the value to assertvalue if it is not nullNullPointerException - if value==nullpublic static void assertArgNotNull(String message, Object obj)
public static void assertArgNotNull(String message, Object... objects)
public static void assertArgTrue(String message, boolean expression)
public static void assertArgGreaterThan(String message, int argValue, int num)
public static void assertArgGreaterThanOrEqualTo(String message, int argValue, int num)
public static void assertArgLessThan(String message, int argValue, int num)
public static void assertArgLessThanOrEqualTo(String message, int argValue, int num)
public static void assertArgFalse(String message, boolean expression)
Copyright © 2025. All rights reserved.