| 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 CollectionCheck |
CompactChecks.check(Collection<?> argument)
|
static CollectionCheck |
Check.that(Collection<?> argument)
Returns a
CollectionCheck which can be use to check various
properties of a Collection, e.g. |
| Modifier and Type | Method and Description |
|---|---|
CollectionCheck |
CollectionCheck.containsNoNull()
Checks that the collection argument does not contain any
null element, throwing an exception otherwise. |
CollectionCheck |
CollectionCheck.hasSize(int size)
Checks that the collection argument has the given size, throwing an
exception otherwise.
|
CollectionCheck |
CollectionCheck.hasSizeBetween(int min,
int max)
Checks that the collection argument's size is between the two given
numbers, throwing an exception otherwise.
|
CollectionCheck |
CollectionCheck.isNotEmpty()
Checks that the collection argument is not empty (meaning it has a size
greater than zero), throwing an exception otherwise.
|
Copyright © 2012–2017 Michael Faes. All rights reserved.