Package | Description |
---|---|
ch.trick17.betterchecks | |
ch.trick17.betterchecks.fluent |
Contains all fluent check classes, like
IntCheck ,
StringCheck and many more. |
Modifier and Type | Method and Description |
---|---|
static ObjectArrayCheck |
CompactChecks.check(Object[] argument)
|
static ObjectArrayCheck |
Check.that(Object[] argument)
Returns a
ObjectArrayCheck which can be use to check various
properties of an object array (Object[] ), e.g. |
Modifier and Type | Method and Description |
---|---|
ObjectArrayCheck |
ObjectArrayCheck.containsNoNull()
Checks that the array argument does not contain any
null
element, throwing an exception otherwise. |
ObjectArrayCheck |
ObjectArrayCheck.hasLength(int length)
Checks that the array argument has the given length, throwing an
exception otherwise.
|
ObjectArrayCheck |
ObjectArrayCheck.hasLengthBetween(int min,
int max)
Checks that the array argument's length is between the two given numbers,
throwing an exception otherwise.
|
ObjectArrayCheck |
ObjectArrayCheck.isNotEmpty()
Checks that the array argument is not empty (meaning it has a length
greater than zero), throwing an exception otherwise.
|
Copyright © 2012–2017 Michael Faes. All rights reserved.