Uses of Class
org.junit.platform.commons.PreconditionViolationException
| Package | Description |
|---|---|
| org.junit.platform.commons.util |
Internal common utilities for JUnit.
|
-
Uses of PreconditionViolationException in org.junit.platform.commons.util
Methods in org.junit.platform.commons.util that throw PreconditionViolationException Modifier and Type Method Description static voidPreconditions. condition(boolean predicate, java.lang.String message)Assert that the suppliedpredicateistrue.static voidPreconditions. condition(boolean predicate, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the suppliedpredicateistrue.static <T> T[]Preconditions. containsNoNullElements(T[] array, java.lang.String message)Assert that the supplied array contains nonullelements.static <T> T[]Preconditions. containsNoNullElements(T[] array, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the supplied array contains nonullelements.static <T extends java.util.Collection<?>>
TPreconditions. containsNoNullElements(T collection, java.lang.String message)Assert that the supplied collection contains nonullelements.static <T extends java.util.Collection<?>>
TPreconditions. containsNoNullElements(T collection, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the supplied collection contains nonullelements.static java.lang.StringPreconditions. notBlank(java.lang.String str, java.lang.String message)Assert that the suppliedStringis not blank.static java.lang.StringPreconditions. notBlank(java.lang.String str, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the suppliedStringis not blank.static <T> T[]Preconditions. notEmpty(T[] array, java.lang.String message)Assert that the supplied array is neithernullnor empty.static <T> T[]Preconditions. notEmpty(T[] array, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the supplied array is neithernullnor empty.static <T extends java.util.Collection<?>>
TPreconditions. notEmpty(T collection, java.lang.String message)Assert that the suppliedCollectionis neithernullnor empty.static <T extends java.util.Collection<?>>
TPreconditions. notEmpty(T collection, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the suppliedCollectionis neithernullnor empty.static <T> TPreconditions. notNull(T object, java.lang.String message)Assert that the suppliedObjectis notnull.static <T> TPreconditions. notNull(T object, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that the suppliedObjectis notnull.