Class PioneerPreconditions
java.lang.Object
org.junitpioneer.internal.PioneerPreconditions
Pioneer-internal utility class to handle preconditions.
DO NOT USE THIS CLASS - IT MAY CHANGE SIGNIFICANTLY IN ANY MINOR UPDATE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringAsserts that the supplied string is not blank.static StringAsserts that the supplied string is not blank.static <T extends Collection<?>>
TAsserts that the supplied collection is not empty.static <T extends Collection<?>>
TAsserts that the supplied collection is not empty.static <T> TAsserts that the supplied object is not null.static <T> TAsserts that the supplied object is not null.
-
Constructor Details
-
PioneerPreconditions
private PioneerPreconditions()
-
-
Method Details
-
notBlank
-
notBlank
-
notNull
Asserts that the supplied object is not null.- Parameters:
object- the object to checkmessage- the precondition violation message- Returns:
- the supplied object
-
notNull
-
notEmpty
Asserts that the supplied collection is not empty.- Parameters:
collection- the collection to checkmessage- the precondition violation message- Returns:
- the supplied string
-
notEmpty
Asserts that the supplied collection is not empty.- Parameters:
collection- the collection to checkmessageSupplier- the precondition violation message supplier- Returns:
- the supplied string
-