Uses of Class
org.junit.platform.commons.PreconditionViolationException

Packages that use 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 void Preconditions.condition​(boolean predicate, java.lang.String message)
    Assert that the supplied predicate is true.
    static void Preconditions.condition​(boolean predicate, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied predicate is true.
    static <T> T[] Preconditions.containsNoNullElements​(T[] array, java.lang.String message)
    Assert that the supplied array contains no null elements.
    static <T> T[] Preconditions.containsNoNullElements​(T[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied array contains no null elements.
    static <T extends java.util.Collection<?>>
    T
    Preconditions.containsNoNullElements​(T collection, java.lang.String message)
    Assert that the supplied collection contains no null elements.
    static <T extends java.util.Collection<?>>
    T
    Preconditions.containsNoNullElements​(T collection, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied collection contains no null elements.
    static java.lang.String Preconditions.notBlank​(java.lang.String str, java.lang.String message)
    Assert that the supplied String is not blank.
    static java.lang.String Preconditions.notBlank​(java.lang.String str, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied String is not blank.
    static <T> T[] Preconditions.notEmpty​(T[] array, java.lang.String message)
    Assert that the supplied array is neither null nor empty.
    static <T> T[] Preconditions.notEmpty​(T[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied array is neither null nor empty.
    static <T extends java.util.Collection<?>>
    T
    Preconditions.notEmpty​(T collection, java.lang.String message)
    Assert that the supplied Collection is neither null nor empty.
    static <T extends java.util.Collection<?>>
    T
    Preconditions.notEmpty​(T collection, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied Collection is neither null nor empty.
    static <T> T Preconditions.notNull​(T object, java.lang.String message)
    Assert that the supplied Object is not null.
    static <T> T Preconditions.notNull​(T object, java.util.function.Supplier<java.lang.String> messageSupplier)
    Assert that the supplied Object is not null.