public final class Assert extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Assert.AssertionFailedException
Represents a failed Morphia Assertion
|
| Modifier and Type | Method and Description |
|---|---|
static void |
parameterNotEmpty(String name,
Iterable obj)
Validates that the Iterable is not empty
|
static void |
parameterNotEmpty(String name,
String value)
Validates that the value is not empty
|
static void |
parameterNotNull(String name,
Object reference)
Validates that the parameter is not null
|
static void |
parametersNotNull(String names,
Object... objects)
Validates that all the parameters are not null
|
static void |
raiseError(String error)
Throws an AssertionFailedException with the given error message.
|
public static void raiseError(String error)
error - the error messagepublic static void parametersNotNull(String names, Object... objects)
names - a comma separated String of parameter namesobjects - the proposed parameter valuespublic static void parameterNotNull(String name, Object reference)
name - the parameter namereference - the proposed parameter valuepublic static void parameterNotEmpty(String name, Iterable obj)
name - the parameter nameobj - the proposed parameter value