Uses of Class
org.junit.platform.commons.PreconditionViolationException
-
Packages that use PreconditionViolationException Package Description org.junit.platform.commons.util Internal common utilities for JUnit.org.junit.platform.engine Public API for test engines.org.junit.platform.engine.discovery org.junit.platform.launcher Public API for configuring and launching test plans.org.junit.platform.launcher.core Core support classes for theLauncher
including theLauncherFactory
and theLauncherDiscoveryRequestBuilder
. -
-
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, String message)
Assert that the suppliedpredicate
istrue
.static void
Preconditions. condition(boolean predicate, Supplier<String> messageSupplier)
Assert that the suppliedpredicate
istrue
.static <T> T[]
Preconditions. containsNoNullElements(T[] array, String message)
Assert that the supplied array contains nonull
elements.static <T> T[]
Preconditions. containsNoNullElements(T[] array, Supplier<String> messageSupplier)
Assert that the supplied array contains nonull
elements.static <T extends Collection<?>>
TPreconditions. containsNoNullElements(T collection, String message)
Assert that the supplied collection contains nonull
elements.static <T extends Collection<?>>
TPreconditions. containsNoNullElements(T collection, Supplier<String> messageSupplier)
Assert that the supplied collection contains nonull
elements.static String
Preconditions. notBlank(String str, String message)
Assert that the suppliedString
is not blank.static String
Preconditions. notBlank(String str, Supplier<String> messageSupplier)
Assert that the suppliedString
is not blank.static <T> T[]
Preconditions. notEmpty(T[] array, String message)
Assert that the supplied array is neithernull
nor empty.static <T> T[]
Preconditions. notEmpty(T[] array, Supplier<String> messageSupplier)
Assert that the supplied array is neithernull
nor empty.static <T extends Collection<?>>
TPreconditions. notEmpty(T collection, String message)
Assert that the suppliedCollection
is neithernull
nor empty.static <T extends Collection<?>>
TPreconditions. notEmpty(T collection, Supplier<String> messageSupplier)
Assert that the suppliedCollection
is neithernull
nor empty.static <T> T
Preconditions. notNull(T object, String message)
Assert that the suppliedObject
is notnull
.static <T> T
Preconditions. notNull(T object, Supplier<String> messageSupplier)
Assert that the suppliedObject
is notnull
. -
Uses of PreconditionViolationException in org.junit.platform.engine
Methods in org.junit.platform.engine that throw PreconditionViolationException Modifier and Type Method Description static TestTag
TestTag. create(String name)
Create aTestTag
from the suppliedname
. -
Uses of PreconditionViolationException in org.junit.platform.engine.discovery
Methods in org.junit.platform.engine.discovery that throw PreconditionViolationException Modifier and Type Method Description static MethodSelector
DiscoverySelectors. selectMethod(String fullyQualifiedMethodName)
Create aMethodSelector
for the supplied fully qualified method name. -
Uses of PreconditionViolationException in org.junit.platform.launcher
Methods in org.junit.platform.launcher that throw PreconditionViolationException Modifier and Type Method Description static PostDiscoveryFilter
TagFilter. excludeTags(String... tagExpressions)
Create an exclude filter based on the supplied tag expressions.static PostDiscoveryFilter
TagFilter. excludeTags(List<String> tagExpressions)
Create an exclude filter based on the supplied tag expressions.TestIdentifier
TestPlan. getTestIdentifier(String uniqueId)
Get theTestIdentifier
with the supplied unique ID.static PostDiscoveryFilter
TagFilter. includeTags(String... tagExpressions)
Create an include filter based on the supplied tag expressions.static PostDiscoveryFilter
TagFilter. includeTags(List<String> tagExpressions)
Create an include filter based on the supplied tag expressions. -
Uses of PreconditionViolationException in org.junit.platform.launcher.core
Methods in org.junit.platform.launcher.core that throw PreconditionViolationException Modifier and Type Method Description static Launcher
LauncherFactory. create()
Factory method for creating a newLauncher
using automatic registration for test engines and test execution listeners.static Launcher
LauncherFactory. create(LauncherConfig config)
Factory method for creating a newLauncher
using the suppliedLauncherConfig
.
-