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,
String message)
Assert that the supplied
predicate is true . |
static void |
Preconditions.condition(boolean predicate,
Supplier<String> messageSupplier)
Assert that the supplied
predicate is true . |
static <T> T[] |
Preconditions.containsNoNullElements(T[] array,
String message)
Assert that the supplied array contains no
null elements. |
static <T> T[] |
Preconditions.containsNoNullElements(T[] array,
Supplier<String> messageSupplier)
Assert that the supplied array contains no
null elements. |
static <T extends Collection<?>> |
Preconditions.containsNoNullElements(T collection,
String message)
Assert that the supplied collection contains no
null elements. |
static <T extends Collection<?>> |
Preconditions.containsNoNullElements(T collection,
Supplier<String> messageSupplier)
Assert that the supplied collection contains no
null elements. |
static String |
Preconditions.notBlank(String str,
String message)
Assert that the supplied
String is not blank. |
static String |
Preconditions.notBlank(String str,
Supplier<String> messageSupplier)
Assert that the supplied
String is not blank. |
static <T> T[] |
Preconditions.notEmpty(T[] array,
String message)
Assert that the supplied array is neither
null nor empty. |
static <T> T[] |
Preconditions.notEmpty(T[] array,
Supplier<String> messageSupplier)
Assert that the supplied array is neither
null nor empty. |
static <T extends Collection<?>> |
Preconditions.notEmpty(T collection,
String message)
Assert that the supplied
Collection is neither null nor empty. |
static <T extends Collection<?>> |
Preconditions.notEmpty(T collection,
Supplier<String> messageSupplier)
Assert that the supplied
Collection is neither null nor empty. |
static <T> T |
Preconditions.notNull(T object,
String message)
Assert that the supplied
Object is not null . |
static <T> T |
Preconditions.notNull(T object,
Supplier<String> messageSupplier)
Assert that the supplied
Object is not null . |
Modifier and Type | Method and Description |
---|---|
static TestTag |
TestTag.create(String name)
Create a
TestTag from the supplied name . |
Modifier and Type | Method and Description |
---|---|
static MethodSelector |
DiscoverySelectors.selectMethod(String fullyQualifiedMethodName)
Create a
MethodSelector for the supplied fully qualified
method name. |
Modifier and Type | Method and Description |
---|---|
static PostDiscoveryFilter |
TagFilter.excludeTags(List<String> tags)
Create an exclude filter based on the supplied
tags . |
static PostDiscoveryFilter |
TagFilter.excludeTags(String... tags)
Create an exclude filter based on the supplied
tags . |
TestIdentifier |
TestPlan.getTestIdentifier(String uniqueId)
Get the
TestIdentifier with the supplied unique ID. |
static PostDiscoveryFilter |
TagFilter.includeTags(List<String> tags)
Create an include filter based on the supplied
tags . |
static PostDiscoveryFilter |
TagFilter.includeTags(String... tags)
Create an include filter based on the supplied
tags . |
Modifier and Type | Method and Description |
---|---|
static Launcher |
LauncherFactory.create()
Factory method for creating a new
Launcher using dynamically
detected test engines. |