public final class IllegalArgumentAssertion
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Boolean |
assertFalse(java.lang.Boolean value,
java.lang.String message)
Throws an IllegalArgumentException when the given value is not false.
|
static <T> T |
assertNotNull(T value,
java.lang.String name)
Throws an IllegalArgumentException when the given value is null.
|
static java.lang.Boolean |
assertTrue(java.lang.Boolean value,
java.lang.String message)
Throws an IllegalArgumentException when the given value is not true.
|
public static <T> T assertNotNull(T value,
java.lang.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 java.lang.Boolean assertTrue(java.lang.Boolean value,
java.lang.String message)
value - the value to assert if truemessage - the message to display if the value is falsepublic static java.lang.Boolean assertFalse(java.lang.Boolean value,
java.lang.String message)
value - the value to assert if falsemessage - the message to display if the value is falseCopyright © 2019. All rights reserved.