| 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 the
Launcher
including the LauncherFactory
and the LauncherDiscoveryRequestBuilder. |
| Modifier and Type | Method and 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<?>> |
Preconditions.containsNoNullElements(T collection,
java.lang.String message)
Assert that the supplied collection contains no
null elements. |
static <T extends java.util.Collection<?>> |
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 int[] |
Preconditions.notEmpty(int[] array,
java.lang.String message)
Assert that the supplied array is neither
null nor empty. |
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<?>> |
Preconditions.notEmpty(T collection,
java.lang.String message)
Assert that the supplied
Collection is neither null nor empty. |
static <T extends java.util.Collection<?>> |
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. |
| Modifier and Type | Method and Description |
|---|---|
static TestTag |
TestTag.create(java.lang.String name)
Create a
TestTag from the supplied name. |
| Modifier and Type | Method and Description |
|---|---|
static MethodSelector |
DiscoverySelectors.selectMethod(java.lang.ClassLoader classLoader,
java.lang.String fullyQualifiedMethodName)
Create a
MethodSelector for the supplied fully qualified
method name and class loader. |
static MethodSelector |
DiscoverySelectors.selectMethod(java.lang.String fullyQualifiedMethodName)
Create a
MethodSelector for the supplied fully qualified
method name. |
static NestedMethodSelector |
DiscoverySelectors.selectNestedMethod(java.lang.ClassLoader classLoader,
java.util.List<java.lang.String> enclosingClassNames,
java.lang.String nestedClassName,
java.lang.String methodName)
Create a
NestedMethodSelector for the supplied nested class name, method name,
and class loader. |
| Modifier and Type | Method and Description |
|---|---|
static PostDiscoveryFilter |
TagFilter.excludeTags(java.util.List<java.lang.String> tagExpressions)
Create an exclude filter based on the supplied tag expressions.
|
static PostDiscoveryFilter |
TagFilter.excludeTags(java.lang.String... tagExpressions)
Create an exclude filter based on the supplied tag expressions.
|
TestIdentifier |
TestPlan.getTestIdentifier(java.lang.String uniqueId)
Deprecated.
|
static PostDiscoveryFilter |
TagFilter.includeTags(java.util.List<java.lang.String> tagExpressions)
Create an include filter based on the supplied tag expressions.
|
static PostDiscoveryFilter |
TagFilter.includeTags(java.lang.String... tagExpressions)
Create an include filter based on the supplied tag expressions.
|
| Modifier and Type | Method and Description |
|---|---|
static Launcher |
LauncherFactory.create()
|
static Launcher |
LauncherFactory.create(LauncherConfig config)
Factory method for creating a new
Launcher using the supplied
LauncherConfig. |
TestIdentifier |
InternalTestPlan.getTestIdentifier(java.lang.String uniqueId) |
static LauncherSession |
LauncherFactory.openSession()
|
static LauncherSession |
LauncherFactory.openSession(LauncherConfig config)
Factory method for opening a new
LauncherSession using the
supplied LauncherConfig. |