public final class IllegalArgumentAssertion extends Object
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
assertFalse(Boolean value,
String message)
Throws an IllegalArgumentException when the given value is not false.
|
static <T> T |
assertNotNull(T value,
String name)
Throws an IllegalArgumentException when the given value is null.
|
static Boolean |
assertTrue(Boolean value,
String message)
Throws an IllegalArgumentException when the given value is not true.
|
public static <T> T assertNotNull(T value,
String name)
T - The generic type of the value to assert if not nullvalue - the value to assert if not nullname - the name of the argumentpublic static Boolean assertTrue(Boolean value, String message)
value - the value to assert if truemessage - the message to display if the value is falseCopyright © 2017. All rights reserved.