|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Assert is a utility class for performing postcondition checksChecks are objects that validate conditions.Check.Failure
Check.VarFailure
Ensure is a utility class for performing precondition checks.Assert.that().fail(varName,var,message,args)
Assert.that().fail(message,args)
Ensure.that().fail(varName,var,message,args)
Ensure.that().fail(message,args)
VariableFormatter, for
the given variable name an value
var is not null, less than or equal to
max and greater than or equal to min
null and > than
other
null and >= than
other
var is not null and contained by the given
container
null and < than
other
null and <= than
other
var is not null and its size less than or equals
to the the given maxSize
var is not null and its size less than or equals
to the the given maxSize
var is not null and its size greater than or
equals to the the given minSize
var is not null and its size greater than or
equals to the the given minSize
EmptyAware var is not null and not empty
Collection variable is not null and not empty
CharSequence variable is not null and not empty
Map variable is not null and not empty
Iterable variable is not null and not empty
var is >= 0
Assert.that().isNotNull(variableName, variable)
Ensure.that().isNotNull(variableName, variable)
var is not null and not equal to 0
Assert.that().isNull(variableName, variable)
Ensure.that().isNull(variableName, variable)
var is > 0
var is not null and its size is the given
expectedSize
var is not null and its size is the given
expectedSize
var is not null and its size is the given
expectedSize
var is not null and its size is the given
expectedSize
var is not null and its ize is the given
expectedSize
var is not null and equal to 0
Assert.that().is(condition,message,args)
Ensure.that().is(condition,message,args)
Assert.that().is(varName,var,condition,message,args)
Ensure.that().is(varName,var,condition,message,args)
Validate that will throw an exception of the given
class on failure
Validate is a generic Check that on failure will throw a and
exception of a parameterized class.VariableFormatter with a custom formatting string, in the
form of the formatting string expected by
String.format(String, Object...).
VariableFormatter with the default formatting string
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||