public class NotEmpty extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
throwDefaultException() |
protected void |
throwDefaultException(String... args) |
protected void |
throwDefaultException(String message) |
void |
verify(Object... objects)
Assert that an object is not
null . |
void |
verify(RuntimeException e,
Object... objects) |
void |
verifyArray(Object[] object)
Verify if a the array assure the assertion.
|
void |
verifyArray(RuntimeException e,
Object[] object) |
public void verify(Object... objects)
null
.
Assert.notNull(clazz, "The class must not be null");
verify
in interface Assertable
objects
- the object to checkIllegalArgumentException
- if the object is null
public void verify(RuntimeException e, Object... objects)
e
- The exception must be throw when arguments the assertion fails.objects
- Arguments to verify against the assertion
throws Throw a specific RuntimeException
exception when the the assertion fails.public void verifyArray(Object[] object)
Assertable
object
- the array to check the assertion.
throws Throw a RuntimeException
exception or subclass when the the assertion fails.public void verifyArray(RuntimeException e, Object[] object)
e
- The exception must be throw when arguments the assertion fails.object
- the array to check the assertion.
throws Throw a specific RuntimeException
exception when the the assertion fails.protected void throwDefaultException()
protected void throwDefaultException(String... args)
protected void throwDefaultException(String message)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.