Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- aborted(Throwable) - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for an aborted execution of a test or container with the suppliedthrowable
. - ABORTED - Enum constant in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container was aborted (started but not finished).
- AbstractTestDescriptor - Class in org.junit.platform.engine.support.descriptor
-
Abstract base implementation of
TestDescriptor
that may be used by customTestEngines
. - AbstractTestDescriptor(UniqueId, String) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the suppliedUniqueId
and display name. - AbstractTestDescriptor(UniqueId, String, TestSource) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the suppliedUniqueId
, display name, and source. - accept(TestDescriptor.Visitor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Accept a
TestDescriptor.Visitor
to the subtree starting with this descriptor. - acquire() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
-
Acquire this resource lock, potentially blocking.
- adaptFilter(Filter<V>, Function<T, V>) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if the adapted
Filter
includes the value converted using the suppliedFunction
. - addChild(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- addChild(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Add a child to this descriptor.
- addClassContainerSelectorResolver(Predicate<Class<?>>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a predefined resolver that resolves
ClasspathRootSelectors
,ModuleSelectors
, andPackageSelectors
intoClassSelectors
by scanning for classes that satisfy the supplied predicate in the respective class containers to this builder. - addSelectorResolver(Function<EngineDiscoveryRequestResolver.InitializationContext<T>, SelectorResolver>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context sensitive
SelectorResolver
to this builder. - addSelectorResolver(SelectorResolver) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context insensitive
SelectorResolver
to this builder. - addTestDescriptorVisitor(Function<EngineDiscoveryRequestResolver.InitializationContext<T>, TestDescriptor.Visitor>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context sensitive
TestDescriptor.Visitor
to this builder. - addToParent(Function<TestDescriptor, Optional<T>>) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Add a
TestDescriptor
to an unspecified parent, usually the engine descriptor, by applying the suppliedFunction
to the new parent. - addToParent(Supplier<DiscoverySelector>, Function<TestDescriptor, Optional<T>>) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Add a
TestDescriptor
to a parent, specified by theDiscoverySelector
returned by the suppliedSupplier
, by applying the suppliedFunction
to the new parent. - after(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the after behavior of this node.
- append(String, String) - Method in class org.junit.platform.engine.UniqueId
-
Construct a new
UniqueId
by appending a newUniqueId.Segment
, based on the suppliedsegmentType
andvalue
, to the end of thisUniqueId
. - append(UniqueId.Segment) - Method in class org.junit.platform.engine.UniqueId
- appendEngine(String) - Method in class org.junit.platform.engine.UniqueId
-
Construct a new
UniqueId
by appending a newUniqueId.Segment
, based on the suppliedengineId
, to the end of thisUniqueId
. - apply(T) - Method in interface org.junit.platform.engine.Filter
-
Apply this filter to the supplied object.
- around(C, Node.Invocation<C>) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Wraps around the invocation of
Node.before(EngineExecutionContext)
,Node.execute(EngineExecutionContext, DynamicTestExecutor)
, andNode.after(EngineExecutionContext)
. - assertEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Assert that this
ThrowableCollector
is empty (i.e., has not collected anyThrowables
). - awaitFinished() - Method in interface org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor
-
Block until all dynamic test descriptors submitted to this executor are finished.
B
- before(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the before behavior of this node.
- build() - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Build the
EngineDiscoveryRequestResolver
that has been configured via this builder. - buildClassFilter(EngineDiscoveryRequest, Predicate<Class<?>>) - Static method in class org.junit.platform.engine.support.filter.ClasspathScanningSupport
-
Deprecated.
- buildClassNamePredicate(EngineDiscoveryRequest) - Static method in class org.junit.platform.engine.support.filter.ClasspathScanningSupport
-
Deprecated.Please use
EngineDiscoveryRequestResolver
instead. - builder() - Static method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Create a new
EngineDiscoveryRequestResolver.Builder
for creating aEngineDiscoveryRequestResolver
.
C
- children - Variable in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
The synchronized set of children associated with this
TestDescriptor
. - CLASS_SCHEME - Static variable in class org.junit.platform.engine.support.descriptor.ClassSource
- ClassNameFilter - Interface in org.junit.platform.engine.discovery
-
DiscoveryFilter
that is applied to the name of aClass
. - CLASSPATH_SCHEME - Static variable in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- ClasspathResourceSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects the name of a classpath resource so thatTestEngines
can load resources from the classpath — for example, to load XML or JSON files from the classpath, potentially within JARs. - ClasspathResourceSource - Class in org.junit.platform.engine.support.descriptor
-
Classpath resource based
TestSource
with an optional position. - ClasspathRootSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a classpath root so thatTestEngines
can search for class files or resources within the physical classpath — for example, to scan for test classes. - ClasspathScanningSupport - Class in org.junit.platform.engine.support.filter
-
Deprecated.Please use
EngineDiscoveryRequestResolver
instead. - ClassSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aClass
or class name so thatTestEngines
can discover tests or containers based on classes. - ClassSource - Class in org.junit.platform.engine.support.descriptor
-
Class based
TestSource
with an optional file position. - cleanUp(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Clean up the supplied
context
after execution. - clone() - Method in class org.junit.platform.engine.UniqueId
- close() - Method in class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
- close() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService
-
Close this service and let it perform any required cleanup work.
- close() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
- close() - Method in class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- close() - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
If a close action is configured, it will be called with all successfully stored values in reverse insertion order.
- close(N, Object, Object) - Method in interface org.junit.platform.engine.support.store.NamespacedHierarchicalStore.CloseAction
-
Close the supplied
value
. - composeFilters(Collection<? extends Filter<T>>) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if all of the filters in the supplied collection of
filters
include it. - composeFilters(Filter<T>...) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if all of the filters in the supplied array of
filters
include it. - CompositeTestSource - Class in org.junit.platform.engine.support.descriptor
-
A
CompositeTestSource
contains one or moreTestSources
. - CONCURRENT - Enum constant in enum class org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Allow concurrent execution with any other node.
- CONFIG_CUSTOM_CLASS_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to specify the fully qualified class name of the
ParallelExecutionConfigurationStrategy
to be used by theDefaultParallelExecutionConfigurationStrategy.CUSTOM
configuration strategy. - CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name of the factor used to determine the desired parallelism for the
DefaultParallelExecutionConfigurationStrategy.DYNAMIC
configuration strategy. - CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name of the factor used to determine the maximum pool size of the underlying fork-join pool for the
DefaultParallelExecutionConfigurationStrategy.DYNAMIC
configuration strategy. - CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to disable saturation of the underlying fork-join pool for the
DefaultParallelExecutionConfigurationStrategy.DYNAMIC
configuration strategy. - CONFIG_FILE_NAME - Static variable in interface org.junit.platform.engine.ConfigurationParameters
-
Name of the JUnit Platform configuration file: "junit-platform.properties".
- CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to configure the maximum pool size of the underlying fork-join pool for the
DefaultParallelExecutionConfigurationStrategy.FIXED
configuration strategy. - CONFIG_FIXED_PARALLELISM_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to determine the desired parallelism for the
DefaultParallelExecutionConfigurationStrategy.FIXED
configuration strategy. - CONFIG_FIXED_SATURATE_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to disable saturation of the underlying fork-join pool for the
DefaultParallelExecutionConfigurationStrategy.FIXED
configuration strategy. - CONFIG_STRATEGY_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to determine the desired configuration strategy.
- ConfigurationParameters - Interface in org.junit.platform.engine
-
Configuration parameters that
TestEngines
may use to influence test discovery and execution. - CONTAINER - Enum constant in enum class org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a container. - CONTAINER_AND_TEST - Enum constant in enum class org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a test that may potentially also be a container. - containsTests(TestDescriptor) - Static method in interface org.junit.platform.engine.TestDescriptor
-
Determine if the supplied descriptor (or any of its descendants) is a test or may potentially register tests dynamically.
- create() - Method in interface org.junit.platform.engine.support.hierarchical.ThrowableCollector.Factory
-
Create a new instance of a
ThrowableCollector
. - create(String) - Static method in class org.junit.platform.engine.TestTag
-
Create a
TestTag
from the suppliedname
. - create(TestDescriptor, EngineExecutionListener, ConfigurationParameters) - Static method in class org.junit.platform.engine.ExecutionRequest
-
Factory for creating an execution request.
- createConfiguration(ConfigurationParameters) - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy
-
Create a configuration for parallel test execution based on the supplied
ConfigurationParameters
. - createExecutionContext(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the initial execution context for executing the supplied request.
- createExecutorService(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the executor service to use for executing the supplied request.
- createThrowableCollectorFactory(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the factory for creating
ThrowableCollector
instances used to handle exceptions that occur during execution of this engine's tests. - CUSTOM - Enum constant in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Allows the specification of a custom
ParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.
D
- DefaultParallelExecutionConfigurationStrategy - Enum Class in org.junit.platform.engine.support.hierarchical
-
Default implementations of configuration strategies for parallel test execution.
- DirectorySelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a directory so thatTestEngines
can discover tests or containers based on directories in the file system. - DirectorySource - Class in org.junit.platform.engine.support.descriptor
-
Directory based
TestSource
. - discover(EngineDiscoveryRequest, UniqueId) - Method in interface org.junit.platform.engine.TestEngine
-
Discover tests according to the supplied
EngineDiscoveryRequest
. - DiscoveryFilter<T> - Interface in org.junit.platform.engine
-
A
DiscoveryFilter
is applied during test discovery to determine if a given container or test should be included in the test plan. - DiscoverySelector - Interface in org.junit.platform.engine
-
A selector defines what a
TestEngine
can use to discover tests — for example, the name of a Java class, the path to a file or directory, etc. - DiscoverySelectors - Class in org.junit.platform.engine.discovery
-
Collection of
static
factory methods for creatingDiscoverySelectors
. - doNotSkip() - Static method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Factory for creating do not skip results.
- DYNAMIC - Enum constant in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter.
- dynamicTestRegistered(TestDescriptor) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when a new, dynamic
TestDescriptor
has been registered.
E
- EngineDescriptor - Class in org.junit.platform.engine.support.descriptor
- EngineDescriptor(UniqueId, String) - Constructor for class org.junit.platform.engine.support.descriptor.EngineDescriptor
-
Create a new
EngineDescriptor
with the suppliedUniqueId
and display name. - EngineDiscoveryListener - Interface in org.junit.platform.engine
-
EngineDiscoveryListener
containsTestEngine
access to the information necessary to discover tests and containers. - EngineDiscoveryRequest - Interface in org.junit.platform.engine
-
EngineDiscoveryRequest
provides aTestEngine
access to the information necessary to discover tests and containers. - EngineDiscoveryRequestResolver<T extends TestDescriptor> - Class in org.junit.platform.engine.support.discovery
-
Configurable test discovery implementation based on
SelectorResolver
andTestDescriptor.Visitor
that can be reused by differentTestEngines
. - EngineDiscoveryRequestResolver.Builder<T extends TestDescriptor> - Class in org.junit.platform.engine.support.discovery
-
Builder for
EngineDiscoveryRequestResolver
. - EngineDiscoveryRequestResolver.InitializationContext<T extends TestDescriptor> - Interface in org.junit.platform.engine.support.discovery
-
The initialization context for creating resolvers and visitors that depend on the
EngineDiscoveryRequest
to be resolved or the engine descriptor that will be used to collect the results. - EngineExecutionContext - Interface in org.junit.platform.engine.support.hierarchical
-
Marker interface for an execution context used by a concrete implementation of
HierarchicalTestEngine
and its collaborators. - EngineExecutionListener - Interface in org.junit.platform.engine
-
Listener to be notified of test execution events by test engines.
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClassSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.DirectorySelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.FilePosition
- equals(Object) - Method in class org.junit.platform.engine.discovery.FileSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.IterationSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.MethodSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ModuleSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.NestedClassSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.PackageSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.UriSelector
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.FileSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- equals(Object) - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- equals(Object) - Method in class org.junit.platform.engine.TestTag
- equals(Object) - Method in class org.junit.platform.engine.UniqueId
- equals(Object) - Method in class org.junit.platform.engine.UniqueId.Segment
- exact(TestDescriptor) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating an exact match without any children.
- exact(TestDescriptor, Supplier<Set<? extends DiscoverySelector>>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating an exact match with potential children.
- excludeClassNamePatterns(String...) - Static method in interface org.junit.platform.engine.discovery.ClassNameFilter
-
Create a new exclude
ClassNameFilter
based on the supplied patterns. - excluded() - Method in class org.junit.platform.engine.FilterResult
- excluded(String) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating excluded results.
- excludePackageNames(String...) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new exclude
PackageNameFilter
based on the supplied package names. - excludePackageNames(List<String>) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new exclude
PackageNameFilter
based on the supplied package names. - ExclusiveResource - Class in org.junit.platform.engine.support.hierarchical
-
An exclusive resource identified by a key with a lock mode that is used to synchronize access to shared resources when executing nodes in parallel.
- ExclusiveResource(String, ExclusiveResource.LockMode) - Constructor for class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Create a new
ExclusiveResource
. - ExclusiveResource.LockMode - Enum Class in org.junit.platform.engine.support.hierarchical
-
LockMode
translates to the respectiveReadWriteLock
locks. - execute() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Execute this task.
- execute() - Method in interface org.junit.platform.engine.support.hierarchical.SingleTestExecutor.Executable
-
Deprecated.Execute the test.
- execute() - Method in interface org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable
-
Execute this executable, potentially throwing a
Throwable
that signals abortion or failure. - execute(C, Node.DynamicTestExecutor) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the behavior of this node.
- execute(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create an executor service; create an initial execution context; execute the behavior of all nodes in the hierarchy starting with the supplied
request
's root and notify its execution listener of test execution events. - execute(ExecutionRequest) - Method in interface org.junit.platform.engine.TestEngine
-
Execute tests according to the supplied
ExecutionRequest
. - execute(ThrowableCollector.Executable) - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Execute the supplied
ThrowableCollector.Executable
and collect anyThrowable
thrown during the execution. - execute(TestDescriptor) - Method in interface org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor
-
Submit a dynamic test descriptor for immediate execution.
- execute(TestDescriptor, EngineExecutionListener) - Method in interface org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor
-
Submit a dynamic test descriptor for immediate execution with a custom, potentially no-op, execution listener.
- executeSafely(SingleTestExecutor.Executable) - Method in class org.junit.platform.engine.support.hierarchical.SingleTestExecutor
-
Deprecated.Execute the supplied
SingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome. - executionFinished(TestDescriptor, TestExecutionResult) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome.
- ExecutionRequest - Class in org.junit.platform.engine
-
Provides a single
TestEngine
access to the information necessary to execute its tests. - ExecutionRequest(TestDescriptor, EngineExecutionListener, ConfigurationParameters) - Constructor for class org.junit.platform.engine.ExecutionRequest
- executionSkipped(TestDescriptor, String) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree has been skipped.
- executionStarted(TestDescriptor) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree is about to be started.
- expand() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Expand this match in order to resolve the children of the contained
TestDescriptor
.
F
- failed(Throwable) - Static method in class org.junit.platform.engine.SelectorResolutionResult
-
Create a
SelectorResolutionResult
for a failed selector resolution. - failed(Throwable) - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for a failed execution of a test or container with the suppliedthrowable
. - FAILED - Enum constant in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Indicates that the
TestEngine
has encountered an error while resolving the selector. - FAILED - Enum constant in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container failed.
- FilePosition - Class in org.junit.platform.engine.discovery
- FilePosition - Class in org.junit.platform.engine.support.descriptor
- FileSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a file so thatTestEngines
can discover tests or containers based on files in the file system. - FileSource - Class in org.junit.platform.engine.support.descriptor
-
File based
TestSource
with an optional position. - FileSystemSource - Interface in org.junit.platform.engine.support.descriptor
-
File system based
TestSource
. - Filter<T> - Interface in org.junit.platform.engine
-
A
Filter
can be applied to determine if an object should be included or excluded in a result set. - FilterResult - Class in org.junit.platform.engine
-
The result of applying a
Filter
. - findByUniqueId(UniqueId) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- findByUniqueId(UniqueId) - Method in interface org.junit.platform.engine.TestDescriptor
-
Find the descriptor with the supplied unique ID.
- FIXED - Enum constant in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Uses the mandatory "fixed.parallelism" configuration parameter as the desired parallelism.
- forEngine(String) - Static method in class org.junit.platform.engine.UniqueId
-
Create an engine's unique ID from its
engineId
using the default format. - ForkJoinPoolHierarchicalTestExecutorService - Class in org.junit.platform.engine.support.hierarchical
- ForkJoinPoolHierarchicalTestExecutorService(ConfigurationParameters) - Constructor for class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
-
Create a new
ForkJoinPoolHierarchicalTestExecutorService
based on the suppliedConfigurationParameters
. - ForkJoinPoolHierarchicalTestExecutorService(ParallelExecutionConfiguration) - Constructor for class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
-
Create a new
ForkJoinPoolHierarchicalTestExecutorService
based on the suppliedParallelExecutionConfiguration
. - from(int) - Static method in class org.junit.platform.engine.discovery.FilePosition
-
Create a new
FilePosition
using the suppliedline
number and an undefined column number. - from(int) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create a new
FilePosition
using the suppliedline
number and an undefined column number. - from(int, int) - Static method in class org.junit.platform.engine.discovery.FilePosition
-
Create a new
FilePosition
using the suppliedline
andcolumn
numbers. - from(int, int) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create a new
FilePosition
using the suppliedline
andcolumn
numbers. - from(File) - Static method in class org.junit.platform.engine.support.descriptor.DirectorySource
-
Create a new
DirectorySource
using the supplied directory. - from(File) - Static method in class org.junit.platform.engine.support.descriptor.FileSource
-
Create a new
FileSource
using the suppliedfile
. - from(File, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.FileSource
- from(Class<?>) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class. - from(Class<?>, Method) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
- from(Class<?>, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
- from(Package) - Static method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Create a new
PackageSource
using the supplied JavaPackage
. - from(Method) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the suppliedmethod
. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
using the supplied classpath resource name. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class name. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Create a new
PackageSource
using the suppliedpackageName
. - from(String, String) - Static method in class org.junit.platform.engine.reporting.ReportEntry
-
Factory for creating a new
ReportEntry
from a key-value pair. - from(String, String) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name and method name. - from(String, String, Class<?>...) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name, method name, and method parameter types. - from(String, String, String) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name, method name, and method parameter types. - from(String, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
using the supplied classpath resource name andFilePosition
. - from(String, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class name and file position. - from(URI) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
from the suppliedURI
. - from(URI) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
from the suppliedURI
. - from(URI) - Static method in interface org.junit.platform.engine.support.descriptor.UriSource
-
Create a new
UriSource
using the suppliedURI
. - from(Collection<? extends TestSource>) - Static method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
-
Create a new
CompositeTestSource
based on the supplied collection ofsources
. - from(Map<String, String>) - Static method in class org.junit.platform.engine.reporting.ReportEntry
-
Factory for creating a new
ReportEntry
from a map of key-value pairs. - fromQuery(String) - Static method in class org.junit.platform.engine.discovery.FilePosition
-
Create an optional
FilePosition
by parsing the suppliedquery
string. - fromQuery(String) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create an optional
FilePosition
by parsing the suppliedquery
string.
G
- get(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the configuration parameter stored under the specified
key
. - get(String) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- get(String, Function<String, T>) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get and transform the configuration parameter stored under the specified
key
using the specifiedtransformer
. - get(String, Function<String, T>) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- get(N, Object) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Get the value stored for the supplied namespace and key in this store or the parent store, if present.
- get(N, Object, Class<T>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Get the value stored for the supplied namespace and key in this store or the parent store, if present, and cast it to the supplied required type.
- getAncestors() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the immutable set of all ancestors of this descriptor.
- getArtifactId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the Artifact ID of the JAR in which this test engine is packaged.
- getBoolean(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the boolean configuration parameter stored under the specified
key
. - getBoolean(String) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- getChildren() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getChildren() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the immutable set of children of this descriptor.
- getClassLoader() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
Get the
ClassLoader
used to load the selected class. - getClassLoader() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the
ClassLoader
used to load the specified class. - getClassLoader() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
-
Get the
ClassLoader
used to load the selected nested class. - getClassLoader() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the
ClassLoader
used to load the nested class. - getClassName() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
Get the selected class name.
- getClassName() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected class name.
- getClassName() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Get the class name of this source.
- getClassName() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the class name of this source.
- getClassNameFilter() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the class name filter built from the
ClassNameFilters
andPackageNameFilters
in theEngineDiscoveryRequest
that is about to be resolved. - getClasspathResourceName() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
-
Get the name of the selected classpath resource.
- getClasspathResourceName() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Get the name of the source classpath resource.
- getClasspathRoot() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
-
Get the selected classpath root directory as an
URI
. - getColumn() - Method in class org.junit.platform.engine.discovery.FilePosition
-
Get the column number of this
FilePosition
, if available. - getColumn() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Get the column number of this
FilePosition
, if available. - getConfigurationParameters() - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
ConfigurationParameters
for this request. - getConfigurationParameters() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the
ConfigurationParameters
that the engine may use to influence test execution. - getCorePoolSize() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the core thread pool size to be used.
- getDescendants() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the immutable set of all descendants of this descriptor.
- getDirectory() - Method in class org.junit.platform.engine.discovery.DirectorySelector
-
Get the selected directory as a
File
. - getDiscoveryListener() - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
EngineDiscoveryListener
for this request. - getDiscoveryRequest() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the
EngineDiscoveryRequest
that is about to be resolved. - getDisplayName() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getDisplayName() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the display name for this descriptor.
- getEnclosingClasses() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
- getEnclosingClasses() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
- getEnclosingClassNames() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
-
Get the names of the classes enclosing the selected nested class.
- getEnclosingClassNames() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the names of the classes enclosing the nested class containing the selected method.
- getEngineDescriptor() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the engine's
TestDescriptor
that will be used to collect the results. - getEngineExecutionListener() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the
EngineExecutionListener
to be notified of test execution events. - getEngineId() - Method in class org.junit.platform.engine.UniqueId
-
Get the engine ID stored in this
UniqueId
, if available. - getExclusiveResources() - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Get the set of exclusive resources required to execute this node.
- getExecutionMode() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Get the execution mode of this task.
- getExecutionMode() - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Get the preferred of execution mode for parallel execution of this node.
- getFile() - Method in class org.junit.platform.engine.discovery.FileSelector
-
Get the selected file as a
File
. - getFile() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
-
Get the source directory.
- getFile() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
Get the source file.
- getFile() - Method in interface org.junit.platform.engine.support.descriptor.FileSystemSource
-
Get the source file or directory.
- getFiltersByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
DiscoveryFilters
for this request, filtered by a particular type. - getGroupId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the Group ID of the JAR in which this test engine is packaged.
- getId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the ID that uniquely identifies this test engine.
- getIterationIndices() - Method in class org.junit.platform.engine.discovery.IterationSelector
-
Get the selected iteration indices.
- getJavaClass() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
Get the selected
Class
. - getJavaClass() - Method in class org.junit.platform.engine.discovery.MethodSelector
- getJavaClass() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Get the Java class of this source.
- getJavaClass() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the Java class of this source.
- getJavaMethod() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected
Method
. - getJavaMethod() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the Java method of this source.
- getKeepAliveSeconds() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.
- getKey() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Get the key of this resource.
- getKeyValuePairs() - Method in class org.junit.platform.engine.reporting.ReportEntry
-
Get an unmodifiable copy of the map of key-value pairs to be published.
- getLastSegment() - Method in class org.junit.platform.engine.UniqueId
-
Get the last
UniqueId.Segment
of thisUniqueId
. - getLegacyReportingName() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the name of this descriptor in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4.
- getLine() - Method in class org.junit.platform.engine.discovery.FilePosition
-
Get the line number of this
FilePosition
. - getLine() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Get the line number of this
FilePosition
. - getLockMode() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Get the lock mode of this resource.
- getMatches() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Returns the matches contained by this resolution.
- getMaxPoolSize() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the maximum thread pool size to be used.
- getMethod() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the selected
Method
. - getMethodName() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected method name.
- getMethodName() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the name of the selected method.
- getMethodName() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the method name of this source.
- getMethodParameterTypes() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Deprecated.since 1.10 in favor of
MethodSelector.getParameterTypeNames()
- getMethodParameterTypes() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Deprecated.since 1.10 in favor or
NestedMethodSelector.getParameterTypeNames()
- getMethodParameterTypes() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the method parameter types of this source.
- getMinimumRunnable() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the minimum number of runnable threads to be used.
- getModuleName() - Method in class org.junit.platform.engine.discovery.ModuleSelector
-
Get the selected module name.
- getName() - Method in class org.junit.platform.engine.TestTag
-
Get the name of this tag.
- getNestedClass() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
-
Get the selected nested
Class
. - getNestedClass() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
- getNestedClassName() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
-
Get the name of the selected nested class.
- getNestedClassName() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the name of the nested class containing the selected method.
- getOrComputeIfAbsent(N, K, Function<K, V>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Get the value stored for the supplied namespace and key in this store or the parent store, if present, or call the supplied function to compute it.
- getOrComputeIfAbsent(N, K, Function<K, V>, Class<V>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Get the value stored for the supplied namespace and key in this store or the parent store, if present, or call the supplied function to compute it and, finally, cast it to the supplied required type.
- getPackageName() - Method in class org.junit.platform.engine.discovery.PackageSelector
-
Get the selected package name.
- getPackageName() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Get the package name of this test source.
- getParallelism() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the parallelism to be used.
- getParameterTypeNames() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the names of parameter types for the selected method as a
String
, typically a comma-separated list of primitive types, fully qualified class names, or array types. - getParameterTypeNames() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the names of parameter types for the selected method as a
String
. - getParameterTypes() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the parameter types for the selected method.
- getParameterTypes() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
-
Get the parameter types for the selected method.
- getParent() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getParent() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the parent of this descriptor, if available.
- getParentSelector() - Method in class org.junit.platform.engine.discovery.IterationSelector
-
Get the selected parent
DiscoverySelector
. - getPath() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- getPath() - Method in class org.junit.platform.engine.discovery.FileSelector
- getPosition() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
-
Get the selected
FilePosition
within the classpath resource. - getPosition() - Method in class org.junit.platform.engine.discovery.FileSelector
-
Get the selected position within the file as a
FilePosition
. - getPosition() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Get the
FilePosition
, if available. - getPosition() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- getPosition() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
Get the
FilePosition
, if available. - getRawPath() - Method in class org.junit.platform.engine.discovery.DirectorySelector
-
Get the selected directory as a raw path.
- getRawPath() - Method in class org.junit.platform.engine.discovery.FileSelector
-
Get the selected file as a raw path.
- getReason() - Method in class org.junit.platform.engine.FilterResult
-
Get the reason why the filtered object should be included or excluded, if available.
- getReason() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Get the reason that execution of the context should be skipped, if available.
- getResourceLock() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Get the resource lock of this task.
- getRootTestDescriptor() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the root
TestDescriptor
of the engine that processes this request. - getSaturatePredicate() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the saturate predicate to be used for the execution's
ForkJoinPool
. - getSegments() - Method in class org.junit.platform.engine.UniqueId
-
Get the immutable list of segments that make up this
UniqueId
. - getSelectors() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Returns the selectors contained by this resolution.
- getSelectorsByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
DiscoverySelectors
for this request, filtered by a particular type. - getSource() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getSource() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the source of the test or container described by this descriptor, if available.
- getSources() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
-
Get an immutable list of the sources stored in this
CompositeTestSource
. - getStatus() - Method in class org.junit.platform.engine.SelectorResolutionResult
-
Get the status of this result.
- getStatus() - Method in class org.junit.platform.engine.TestExecutionResult
-
Get the status of this result.
- getTags() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getTags() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the set of tags associated with this descriptor.
- getTestDescriptor() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Get the contained
TestDescriptor
. - getThrowable() - Method in class org.junit.platform.engine.SelectorResolutionResult
-
Get the throwable that caused this result, if available.
- getThrowable() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Get the first
Throwable
collected by thisThrowableCollector
. - getThrowable() - Method in class org.junit.platform.engine.TestExecutionResult
-
Get the throwable that caused this result, if available.
- getTimestamp() - Method in class org.junit.platform.engine.reporting.ReportEntry
-
Get the timestamp for when this
ReportEntry
was created. - getType() - Method in class org.junit.platform.engine.support.descriptor.EngineDescriptor
-
Returns
TestDescriptor.Type.CONTAINER
. - getType() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine the
TestDescriptor.Type
of this descriptor. - getType() - Method in class org.junit.platform.engine.UniqueId.Segment
-
Get the type of this segment.
- getUniqueId() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
-
Get the selected
UniqueId
. - getUniqueId() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getUniqueId() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the unique identifier (UID) for this descriptor.
- getUri() - Method in class org.junit.platform.engine.discovery.UriSelector
-
Get the selected
URI
. - getUri() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- getUri() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- getUri() - Method in interface org.junit.platform.engine.support.descriptor.UriSource
-
Get the
URI
that represents this source. - getValue() - Method in class org.junit.platform.engine.UniqueId.Segment
-
Get the value of this segment.
- getVersion() - Method in interface org.junit.platform.engine.TestEngine
-
Get the version of this test engine.
- GLOBAL_KEY - Static variable in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Key of the global resource lock that all direct children of the engine descriptor acquire in read mode by default: "org.junit.platform.engine.support.hierarchical.ExclusiveResource.GLOBAL_KEY"
H
- hashCode() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ClassSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- hashCode() - Method in class org.junit.platform.engine.discovery.FilePosition
- hashCode() - Method in class org.junit.platform.engine.discovery.FileSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.IterationSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.MethodSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ModuleSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.PackageSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.UriSelector
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- hashCode() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- hashCode() - Method in class org.junit.platform.engine.TestTag
- hashCode() - Method in class org.junit.platform.engine.UniqueId
- hashCode() - Method in class org.junit.platform.engine.UniqueId.Segment
- hasPrefix(UniqueId) - Method in class org.junit.platform.engine.UniqueId
-
Determine if the supplied
UniqueId
is a prefix for thisUniqueId
. - HierarchicalTestEngine<C extends EngineExecutionContext> - Class in org.junit.platform.engine.support.hierarchical
-
Abstract base class for all
TestEngine
implementations that wish to organize test suites hierarchically based on theNode
abstraction. - HierarchicalTestEngine() - Constructor for class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
- HierarchicalTestExecutorService - Interface in org.junit.platform.engine.support.hierarchical
-
A closeable service that executes test tasks.
- HierarchicalTestExecutorService.TestTask - Interface in org.junit.platform.engine.support.hierarchical
-
An executable task that represents a single test or container.
I
- includeClassNamePatterns(String...) - Static method in interface org.junit.platform.engine.discovery.ClassNameFilter
-
Create a new include
ClassNameFilter
based on the supplied patterns. - included() - Method in class org.junit.platform.engine.FilterResult
- included(String) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating included results.
- includedIf(boolean) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating filter results based on the condition given.
- includedIf(boolean, Supplier<String>, Supplier<String>) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating filter results based on the condition given.
- includePackageNames(String...) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new include
PackageNameFilter
based on the supplied package names. - includePackageNames(List<String>) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new include
PackageNameFilter
based on the supplied package names. - invoke(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node.Invocation
-
Invoke this invocation with the supplied context.
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService
-
Invoke all supplied test tasks and block until their execution has finished.
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- isContainer() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor describes a container.
- isContainer() - Method in enum class org.junit.platform.engine.TestDescriptor.Type
- isEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Determine if this
ThrowableCollector
is empty (i.e., has not collected anyThrowables
). - isExact() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Whether this match is exact.
- isNotEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Determine if this
ThrowableCollector
is not empty (i.e., has collected at least oneThrowable
). - isResolved() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Whether this resolution contains matches or selectors.
- isRoot() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor is a root descriptor.
- isSkipped() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Whether execution of the context should be skipped.
- isTest() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor describes a test.
- isTest() - Method in enum class org.junit.platform.engine.TestDescriptor.Type
- isValid(String) - Static method in class org.junit.platform.engine.TestTag
-
Determine if the supplied tag name is valid with regard to the supported syntax for tags.
- IterationSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects the iterations of a parentDiscoverySelector
via their indices so thatTestEngines
can discover a subset of the iterations of tests or containers.
K
- keySet() - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the keys of all configuration parameters stored in this
ConfigurationParameters
. - keySet() - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
M
- match(SelectorResolver.Match) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating a resolution that contains the supplied
Match
. - matches(Set<SelectorResolver.Match>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating a resolution that contains the supplied
Matches
. - mayRegisterTests() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor may register dynamic tests during execution.
- MethodSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aMethod
or a combination of class name, method name, and parameter types so thatTestEngines
can discover tests or containers based on methods. - MethodSource - Class in org.junit.platform.engine.support.descriptor
-
Method based
TestSource
. - ModuleSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a module name so thatTestEngines
can discover tests or containers based on modules.
N
- NamespacedHierarchicalStore<N> - Class in org.junit.platform.engine.support.store
-
NamespacedHierarchicalStore
is a hierarchical, namespaced key-value store. - NamespacedHierarchicalStore(NamespacedHierarchicalStore<N>) - Constructor for class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Create a new store with the supplied parent.
- NamespacedHierarchicalStore(NamespacedHierarchicalStore<N>, NamespacedHierarchicalStore.CloseAction<N>) - Constructor for class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Create a new store with the supplied parent and close action.
- NamespacedHierarchicalStore.CloseAction<N> - Interface in org.junit.platform.engine.support.store
-
Called for each successfully stored non-null value in the store when a
NamespacedHierarchicalStore
isclosed
. - NamespacedHierarchicalStoreException - Exception in org.junit.platform.engine.support.store
-
Exception thrown by failed
NamespacedHierarchicalStore
operations. - NamespacedHierarchicalStoreException(String) - Constructor for exception org.junit.platform.engine.support.store.NamespacedHierarchicalStoreException
- NamespacedHierarchicalStoreException(String, Throwable) - Constructor for exception org.junit.platform.engine.support.store.NamespacedHierarchicalStoreException
- NestedClassSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a nestedClass
or class name enclosed in other classes so thatTestEngines
can discover tests or containers based on classes. - NestedMethodSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a nestedMethod
or a combination of enclosing classes names, class name, method name, and parameter types so thatTestEngines
can discover tests or containers based on methods. - newChild() - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Create a child store with this store as its parent using the same close action.
- Node<C extends EngineExecutionContext> - Interface in org.junit.platform.engine.support.hierarchical
-
A node within the execution hierarchy.
- Node.DynamicTestExecutor - Interface in org.junit.platform.engine.support.hierarchical
-
Executor for additional, dynamic test descriptors discovered during execution of a
Node
. - Node.ExecutionMode - Enum Class in org.junit.platform.engine.support.hierarchical
-
Supported execution modes for parallel execution.
- Node.Invocation<C extends EngineExecutionContext> - Interface in org.junit.platform.engine.support.hierarchical
-
Represents an invocation that runs with the supplied context.
- Node.SkipResult - Class in org.junit.platform.engine.support.hierarchical
-
The result of determining whether the execution of a given
context
should be skipped. - nodeFinished(C, TestDescriptor, TestExecutionResult) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Callback invoked when the execution of this node has finished.
- nodeSkipped(C, TestDescriptor, Node.SkipResult) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Callback invoked when the execution of this node has been skipped.
- NOOP - Static variable in interface org.junit.platform.engine.EngineDiscoveryListener
-
No-op implementation of
EngineDiscoveryListener
- NOOP - Static variable in interface org.junit.platform.engine.EngineExecutionListener
-
No-op implementation of
EngineExecutionListener
O
- OpenTest4JAwareThrowableCollector - Class in org.junit.platform.engine.support.hierarchical
-
Specialization of
ThrowableCollector
that treats instances ofTestAbortedException
as aborting. - OpenTest4JAwareThrowableCollector() - Constructor for class org.junit.platform.engine.support.hierarchical.OpenTest4JAwareThrowableCollector
- org.junit.platform.engine - package org.junit.platform.engine
-
Public API for test engines.
- org.junit.platform.engine.discovery - package org.junit.platform.engine.discovery
- org.junit.platform.engine.reporting - package org.junit.platform.engine.reporting
-
Classes used by test engines to report additional data to execution listeners.
- org.junit.platform.engine.support.config - package org.junit.platform.engine.support.config
-
ConfigurationParameters
-related support classes intended to be used by test engine implementations. - org.junit.platform.engine.support.descriptor - package org.junit.platform.engine.support.descriptor
-
TestDescriptor
-related support classes intended to be used by test engine implementations and clients of the launcher. - org.junit.platform.engine.support.discovery - package org.junit.platform.engine.support.discovery
-
Configurable test discovery implementation that can be reused by different test engines.
- org.junit.platform.engine.support.filter - package org.junit.platform.engine.support.filter
-
Filter
-related support classes intended to be used by test engine implementations. - org.junit.platform.engine.support.hierarchical - package org.junit.platform.engine.support.hierarchical
-
Support classes and base implementation for any
TestEngine
that wishes to organize test suites hierarchically based on theNode
abstraction. - org.junit.platform.engine.support.store - package org.junit.platform.engine.support.store
-
Reusable data structures for test engines and their extensions.
P
- PackageNameFilter - Interface in org.junit.platform.engine.discovery
-
DiscoveryFilter
that is applied to the name of aPackage
. - PackageSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a package name so thatTestEngines
can discover tests or containers based on packages. - PackageSource - Class in org.junit.platform.engine.support.descriptor
-
Package based
TestSource
. - ParallelExecutionConfiguration - Interface in org.junit.platform.engine.support.hierarchical
-
Configuration to use for parallel test execution.
- ParallelExecutionConfigurationStrategy - Interface in org.junit.platform.engine.support.hierarchical
-
A strategy to use for configuring parallel test execution.
- parse(String) - Static method in class org.junit.platform.engine.UniqueId
-
Parse a
UniqueId
from the supplied string representation using the default format. - partial(TestDescriptor) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating a partial match without any children.
- partial(TestDescriptor, Supplier<Set<? extends DiscoverySelector>>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating a partial match with potential children.
- PrefixedConfigurationParameters - Class in org.junit.platform.engine.support.config
-
View of
ConfigurationParameters
that applies a supplied prefix to all queries. - PrefixedConfigurationParameters(ConfigurationParameters, String) - Constructor for class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
-
Create a new view of the supplied
ConfigurationParameters
that applies the supplied prefix to all queries. - prepare(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Prepare the supplied
context
prior to execution. - prune() - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove this descriptor from the hierarchy unless it is a root or contains tests.
- put(N, Object, Object) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Put the supplied value for the supplied namespace and key into this store and return the previously associated value in this store.
R
- READ - Enum constant in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Require only read access to the resource.
- READ_WRITE - Enum constant in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Require read and write access to the resource.
- release() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
-
Release this resource lock.
- remove(N, Object) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Remove the value stored for the supplied namespace and key from this store.
- remove(N, Object, Class<T>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Remove the value stored for the supplied namespace and key from this store and cast it to the supplied required type.
- removeChild(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- removeChild(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove a child from this descriptor.
- removeFromHierarchy() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- removeFromHierarchy() - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove this non-root descriptor from its parent and remove all the children from this descriptor.
- removeLastSegment() - Method in class org.junit.platform.engine.UniqueId
- ReportEntry - Class in org.junit.platform.engine.reporting
-
ReportEntry
encapsulates a time-stamped map ofString
-based key-value pairs to be published to the reporting infrastructure. - ReportEntry() - Constructor for class org.junit.platform.engine.reporting.ReportEntry
-
Deprecated.
- reportingEntryPublished(TestDescriptor, ReportEntry) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Can be called for any
TestDescriptor
in order to publish additional information to the reporting infrastructure — for example: Output that would otherwise go toSystem.out
Information about test context or test data - RESERVED_CHARACTERS - Static variable in class org.junit.platform.engine.TestTag
-
Reserved characters that are not permissible as part of a tag name.
- resolve(ClasspathResourceSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClasspathResourceSelector
using the suppliedContext
. - resolve(ClasspathRootSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClasspathRootSelector
using the suppliedContext
. - resolve(ClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClassSelector
using the suppliedContext
. - resolve(DirectorySelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
DirectorySelector
using the suppliedContext
. - resolve(FileSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
FileSelector
using the suppliedContext
. - resolve(IterationSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
IterationSelector
using the suppliedContext
. - resolve(MethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
MethodSelector
using the suppliedContext
. - resolve(ModuleSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ModuleSelector
using the suppliedContext
. - resolve(NestedClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedClassSelector
using the suppliedContext
. - resolve(NestedMethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedMethodSelector
using the suppliedContext
. - resolve(PackageSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
PackageSelector
using the suppliedContext
. - resolve(UniqueIdSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UniqueIdSelector
using the suppliedContext
. - resolve(UriSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UriSelector
using the suppliedContext
. - resolve(DiscoverySelector) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Resolve the supplied
TestDescriptor
, if possible. - resolve(DiscoverySelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
DiscoverySelector
using the suppliedContext
. - resolve(EngineDiscoveryRequest, T) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Resolve the supplied
EngineDiscoveryRequest
and collect the results into the suppliedTestDescriptor
. - resolved() - Static method in class org.junit.platform.engine.SelectorResolutionResult
-
Create a
SelectorResolutionResult
for a resolved selector. - RESOLVED - Enum constant in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Indicates that the
TestEngine
has successfully resolved the selector. - ResourceLock - Interface in org.junit.platform.engine.support.hierarchical
-
A lock for a one or more resources.
- root(String, String) - Static method in class org.junit.platform.engine.UniqueId
-
Create a root unique ID from the supplied
segmentType
andvalue
using the default format.
S
- SAME_THREAD - Enum constant in enum class org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Force execution in same thread as the parent node.
- SameThreadHierarchicalTestExecutorService - Class in org.junit.platform.engine.support.hierarchical
-
A simple executor service that executes all test tasks in the caller's thread.
- SameThreadHierarchicalTestExecutorService() - Constructor for class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- selectClass(Class<?>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClassSelector
for the suppliedClass
. - selectClass(ClassLoader, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClassSelector
for the supplied class name and class loader. - selectClass(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClassSelector
for the supplied class name. - selectClasspathResource(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClasspathResourceSelector
for the supplied classpath resource name. - selectClasspathResource(String, FilePosition) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClasspathResourceSelector
for the supplied classpath resource name. - selectClasspathRoots(Set<Path>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a list of
ClasspathRootSelectors
for the supplied classpath roots (directories or JAR files). - selectDirectory(File) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
DirectorySelector
for the supplied directory. - selectDirectory(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
DirectorySelector
for the supplied directory path. - selectFile(File) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
FileSelector
for the supplied file. - selectFile(File, FilePosition) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
FileSelector
for the supplied file. - selectFile(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
FileSelector
for the supplied file path. - selectFile(String, FilePosition) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
FileSelector
for the supplied file path. - selectIteration(DiscoverySelector, int...) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create an
IterationSelector
for the supplied parent selector and iteration indices. - selectMethod(Class<?>, Method) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
- selectMethod(Class<?>, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the suppliedClass
and method name. - selectMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the suppliedClass
, method name, and parameter types. - selectMethod(Class<?>, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the suppliedClass
, method name, and parameter type names. - selectMethod(ClassLoader, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied fully qualified method name and class loader. - selectMethod(ClassLoader, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied class name, method name, and class loader. - selectMethod(ClassLoader, String, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied class name, method name, parameter type names, and class loader. - selectMethod(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied fully qualified method name. - selectMethod(String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied class name and method name using the default class loader. - selectMethod(String, String, Class<?>...) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied class name, method name, and parameter types. - selectMethod(String, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the supplied class name, method name, and parameter type names. - selectModule(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ModuleSelector
for the supplied module name. - selectModules(Set<String>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a list of
ModuleSelectors
for the supplied module names. - selectNestedClass(ClassLoader, List<String>, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedClassSelector
for the supplied class name, its enclosing classes' names, and class loader. - selectNestedClass(List<Class<?>>, Class<?>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedClassSelector
for the supplied nestedClass
and its enclosing classes. - selectNestedClass(List<String>, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedClassSelector
for the supplied class name and its enclosing classes' names. - selectNestedMethod(ClassLoader, List<String>, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied nested class name, method name, and class loader. - selectNestedMethod(ClassLoader, List<String>, String, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied nested class name, method name, parameter type names, and class loader. - selectNestedMethod(List<Class<?>>, Class<?>, Method) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
- selectNestedMethod(List<Class<?>>, Class<?>, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied nestedClass
and method name. - selectNestedMethod(List<Class<?>>, Class<?>, String, Class<?>...) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied enclosing classes, nested class, method name, and parameter types. - selectNestedMethod(List<Class<?>>, Class<?>, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the suppliedClass
, method name, and parameter type names. - selectNestedMethod(List<String>, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied nested class name and method name. - selectNestedMethod(List<String>, String, String, Class<?>...) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied enclosing class names, nested class name, method name, and parameter types. - selectNestedMethod(List<String>, String, String, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
NestedMethodSelector
for the supplied nested class name, method name, and parameter type names. - selectorProcessed(UniqueId, DiscoverySelector, SelectorResolutionResult) - Method in interface org.junit.platform.engine.EngineDiscoveryListener
-
Must be called after a discovery selector has been processed by a test engine.
- SelectorResolutionResult - Class in org.junit.platform.engine
- SelectorResolutionResult.Status - Enum Class in org.junit.platform.engine
-
Status of resolving a
DiscoverySelector
. - SelectorResolver - Interface in org.junit.platform.engine.support.discovery
-
A resolver that supports resolving one or multiple types of
DiscoverySelectors
. - SelectorResolver.Context - Interface in org.junit.platform.engine.support.discovery
-
The context for resolving a
DiscoverySelector
and adding it to the test tree. - SelectorResolver.Match - Class in org.junit.platform.engine.support.discovery
-
An exact or partial match for resolving a
DiscoverySelector
into aTestDescriptor
. - SelectorResolver.Resolution - Class in org.junit.platform.engine.support.discovery
-
The result of an attempt to resolve a
DiscoverySelector
. - selectors(Set<? extends DiscoverySelector>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating a resolution that contains the supplied
DiscoverySelectors
. - selectPackage(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
PackageSelector
for the supplied package name. - selectUniqueId(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
UniqueIdSelector
for the supplied unique ID. - selectUniqueId(UniqueId) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
UniqueIdSelector
for the suppliedUniqueId
. - selectUri(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
UriSelector
for the supplied URI. - selectUri(URI) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
UriSelector
for the suppliedURI
. - setParent(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- setParent(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Set the parent of this descriptor.
- shouldBeSkipped(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Determine if the execution of the supplied
context
should be skipped. - SingleTestExecutor - Class in org.junit.platform.engine.support.hierarchical
-
Deprecated.
- SingleTestExecutor() - Constructor for class org.junit.platform.engine.support.hierarchical.SingleTestExecutor
-
Deprecated.
- SingleTestExecutor.Executable - Interface in org.junit.platform.engine.support.hierarchical
-
Deprecated.Functional interface for a single test to be executed by
SingleTestExecutor
. - size() - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Deprecated.as of JUnit Platform 1.9 in favor of
ConfigurationParameters.keySet()
- size() - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- skip(String) - Static method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Factory for creating skipped results.
- STANDARD_INCLUDE_PATTERN - Static variable in interface org.junit.platform.engine.discovery.ClassNameFilter
-
Standard include pattern in the form of a regular expression that is used to match against fully qualified class names: "^(Test.*|.+[.$]Test.*|.*Tests?)$"
- submit(HierarchicalTestExecutorService.TestTask) - Method in class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
- submit(HierarchicalTestExecutorService.TestTask) - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService
-
Submit the supplied test task to be executed by this service.
- submit(HierarchicalTestExecutorService.TestTask) - Method in class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- successful() - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for a successful execution of a test or container. - SUCCESSFUL - Enum constant in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container was successful.
T
- TEST - Enum constant in enum class org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a test. - TestDescriptor - Interface in org.junit.platform.engine
-
Mutable descriptor for a test or container that has been discovered by a
TestEngine
. - TestDescriptor.Type - Enum Class in org.junit.platform.engine
-
Supported types for
TestDescriptors
. - TestDescriptor.Visitor - Interface in org.junit.platform.engine
-
Visitor for the tree-like
TestDescriptor
structure. - TestEngine - Interface in org.junit.platform.engine
-
A
TestEngine
facilitates discovery and execution of tests for a particular programming model. - TestExecutionResult - Class in org.junit.platform.engine
-
TestExecutionResult
encapsulates the result of executing a single test or container. - TestExecutionResult.Status - Enum Class in org.junit.platform.engine
-
Status of executing a single test or container.
- TestSource - Interface in org.junit.platform.engine
-
Representation of the source of a test or container used to navigate to its location by IDEs and build tools.
- TestTag - Class in org.junit.platform.engine
-
Immutable value object for a tag that is assigned to a test or container.
- ThrowableCollector - Class in org.junit.platform.engine.support.hierarchical
-
Simple component that can be used to collect one or more instances of
Throwable
. - ThrowableCollector(Predicate<? super Throwable>) - Constructor for class org.junit.platform.engine.support.hierarchical.ThrowableCollector
- ThrowableCollector.Executable - Interface in org.junit.platform.engine.support.hierarchical
-
Functional interface for an executable block of code that may throw a
Throwable
. - ThrowableCollector.Factory - Interface in org.junit.platform.engine.support.hierarchical
-
Factory for
ThrowableCollector
instances. - toPredicate() - Method in interface org.junit.platform.engine.Filter
- toString() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- toString() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- toString() - Method in class org.junit.platform.engine.discovery.ClassSelector
- toString() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- toString() - Method in class org.junit.platform.engine.discovery.FilePosition
- toString() - Method in class org.junit.platform.engine.discovery.FileSelector
- toString() - Method in class org.junit.platform.engine.discovery.IterationSelector
- toString() - Method in class org.junit.platform.engine.discovery.MethodSelector
- toString() - Method in class org.junit.platform.engine.discovery.ModuleSelector
- toString() - Method in class org.junit.platform.engine.discovery.NestedClassSelector
- toString() - Method in class org.junit.platform.engine.discovery.NestedMethodSelector
- toString() - Method in class org.junit.platform.engine.discovery.PackageSelector
- toString() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- toString() - Method in class org.junit.platform.engine.discovery.UriSelector
- toString() - Method in class org.junit.platform.engine.FilterResult
- toString() - Method in class org.junit.platform.engine.reporting.ReportEntry
- toString() - Method in class org.junit.platform.engine.SelectorResolutionResult
- toString() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- toString() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- toString() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- toString() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- toString() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- toString() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
- toString() - Method in class org.junit.platform.engine.TestExecutionResult
- toString() - Method in class org.junit.platform.engine.TestTag
- toString() - Method in class org.junit.platform.engine.UniqueId.Segment
- toString() - Method in class org.junit.platform.engine.UniqueId
-
Generate the unique, formatted string representation of this
UniqueId
using the configuredUniqueIdFormat
. - toTestExecutionResult() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Convert the collected
Throwables
into aTestExecutionResult
.
U
- UniqueId - Class in org.junit.platform.engine
-
UniqueId
encapsulates the creation, parsing, and display of unique IDs forTestDescriptors
. - UniqueId.Segment - Class in org.junit.platform.engine
-
A segment of a
UniqueId
comprises a type and a value. - UniqueIdSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aUniqueId
so thatTestEngines
can discover tests or containers based on unique IDs. - unresolved() - Static method in class org.junit.platform.engine.SelectorResolutionResult
-
Create a
SelectorResolutionResult
for an unresolved selector. - unresolved() - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating unresolved resolutions.
- UNRESOLVED - Enum constant in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Indicates that the
TestEngine
was unable to resolve the selector. - UriSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aURI
so thatTestEngines
can discover tests or containers based on URIs. - UriSource - Interface in org.junit.platform.engine.support.descriptor
-
A
TestSource
that can be represented as aURI
.
V
- valueOf(String) - Static method in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.engine.TestDescriptor.Type
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.engine.TestDescriptor.Type
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- visit(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor.Visitor
-
Visit a
TestDescriptor
.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
EngineDiscoveryRequestResolver
instead.