public class Assertions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertNotEmpty(String value,
String message)
|
static void |
assertNotNull(Object value,
String message)
|
static void |
assertThat(boolean mustBeTrue,
String message)
|
public static void assertNotEmpty(String value, String message) throws IllegalArgumentException
value - The value to test.message - The message for the exception to throw.IllegalArgumentException - In the case that the value is null.public static void assertNotNull(Object value, String message) throws IllegalArgumentException
value - The value to test.message - The message for the exception to throw.IllegalArgumentException - In the case that the value is null.public static void assertThat(boolean mustBeTrue,
String message)
throws IllegalArgumentException
mustBeTrue - The value to test.message - The message for the exception to throw.IllegalArgumentException - In the case that the value is null.Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.