Index
All Classes|All Packages|Constant Field Values|Deprecated API|Serialized Form
C
- CachingJupiterConfiguration - Class in org.junit.jupiter.engine.config
-
Caching implementation of the
JupiterConfiguration
API. - CachingJupiterConfiguration(JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- call(Callable<V>) - Static method in class org.junit.platform.commons.function.Try
-
Call the supplied
Callable
and return a successfulTry
that contains the returned value or, in case an exception was thrown, a failedTry
that contains the exception. - canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- CAPTURE_MAX_BUFFER_DEFAULT - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Default maximum number of bytes for buffering to use per thread and output type if output capturing is enabled.
- CAPTURE_MAX_BUFFER_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the maximum number of bytes for buffering to use per thread and output type if output capturing is enabled: "junit.platform.output.capture.maxBuffer"
- CAPTURE_STDERR_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.err
: "junit.platform.output.capture.stderr" - CAPTURE_STDOUT_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.out
: "junit.platform.output.capture.stdout" - cause(Condition<Throwable>...) - Static method in class org.junit.platform.testkit.engine.TestExecutionResultConditions
- chars() - Element in annotation interface org.junit.jupiter.params.provider.ValueSource
-
The
char
values to use as sources of arguments; must not be empty. - 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
- ClassBasedTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for tests based on Java classes. - ClassDescriptor - Interface in org.junit.jupiter.api
-
ClassDescriptor
encapsulates functionality for a givenClass
. - classes() - Element in annotation interface org.junit.jupiter.params.provider.ValueSource
-
The
Class
values to use as sources of arguments; must not be empty. - ClassFilter - Class in org.junit.platform.commons.util
-
Class-related predicate used by reflection utilities.
- ClassLoaderUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with ClassLoader and associated tasks.
- ClassName() - Constructor for class org.junit.jupiter.api.ClassOrderer.ClassName
- ClassNameFilter - Interface in org.junit.platform.engine.discovery
-
DiscoveryFilter
that is applied to the name of aClass
. - ClassNamePatternFilterUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for creating filters based on class names.
- ClassOrderer - Interface in org.junit.jupiter.api
-
ClassOrderer
defines the API for ordering top-level test classes and@Nested
test classes. - ClassOrderer.ClassName - Class in org.junit.jupiter.api
-
ClassOrderer
that sorts classes alphanumerically based on their fully qualified names usingString.compareTo(String)
. - ClassOrderer.DisplayName - Class in org.junit.jupiter.api
-
ClassOrderer
that sorts classes alphanumerically based on their display names usingString.compareTo(String)
- ClassOrderer.OrderAnnotation - Class in org.junit.jupiter.api
-
ClassOrderer
that sorts classes based on the@Order
annotation. - ClassOrderer.Random - Class in org.junit.jupiter.api
-
ClassOrderer
that orders classes pseudo-randomly. - ClassOrdererContext - Interface in org.junit.jupiter.api
-
ClassOrdererContext
encapsulates the context in which aClassOrderer
will be invoked. - 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.
- 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. - ClassSupport - Class in org.junit.platform.commons.support
-
ClassSupport
provides static utility methods for common tasks regarding classes — for example, generating a comma-separated list of fully qualified class names for a set of supplied classes. - ClassTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for tests based on Java classes. - ClassTestDescriptor(UniqueId, Class<?>, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- ClassUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
classes
. - cleanUp(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Clean up the supplied
context
after execution. - cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
- cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- clear() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Clear all existing
log records
that have been submitted to this listener by the current thread. - clearFilters() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- clone() - Method in class org.junit.platform.engine.UniqueId
- close() - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
-
Close underlying resources.
- close() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- 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 interface org.junit.platform.launcher.LauncherSession
-
Close this session and notify all registered
LauncherSessionListeners
. - closeAllStoredCloseableValues() - Method in class org.junit.jupiter.engine.execution.ExtensionValuesStore
-
Close all values that implement
ExtensionContext.Store.CloseableResource
. - CollectionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Collections
. - column() - Element in annotation interface org.junit.platform.suite.api.SelectClasspathResource
-
The column number within the classpath resource; ignored if the line number is ignored or if not greater than zero.
- column() - Element in annotation interface org.junit.platform.suite.api.SelectFile
-
The column number within the file; ignored if the line number is ignored or if not greater than zero.
- CommandLineOptions - Class in org.junit.platform.console.options
- CommandLineOptions() - Constructor for class org.junit.platform.console.options.CommandLineOptions
- CommandLineOptionsParser - Interface in org.junit.platform.console.options
- 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. - composite(List<LauncherDiscoveryListener>) - Static method in class org.junit.platform.launcher.listeners.discovery.LauncherDiscoveryListeners
- composite(List<LauncherSessionListener>) - Static method in class org.junit.platform.launcher.listeners.session.LauncherSessionListeners
- CompositeTestSource - Class in org.junit.platform.engine.support.descriptor
-
A
CompositeTestSource
contains one or moreTestSources
. - computeExitCode(TestExecutionSummary, CommandLineOptions) - Static method in class org.junit.platform.console.ConsoleLauncherExecutionResult
- CONCURRENT - Enum constant in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Allow concurrent execution with any other node.
- CONCURRENT - Enum constant in enum class org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Allow concurrent execution with any other node.
- condition(boolean, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicate
istrue
. - condition(boolean, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicate
istrue
. - ConditionEvaluationResult - Class in org.junit.jupiter.api.extension
-
The result of evaluating an
ExecutionCondition
. - ConditionEvaluator - Class in org.junit.jupiter.engine.execution
-
ConditionEvaluator
evaluatesExecutionCondition
extensions. - ConditionEvaluator() - Constructor for class org.junit.jupiter.engine.execution.ConditionEvaluator
- config(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at config level. - config(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at config level. - 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_FILE_NAME - Static variable in interface org.junit.platform.engine.ConfigurationParameters
-
Name of the JUnit Platform configuration file: "junit-platform.properties".
- 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_STRATEGY_PROPERTY_NAME - Static variable in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to determine the desired configuration strategy.
- configurationParameter(String, String) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add the supplied configuration parameter to the request.
- configurationParameter(String, String) - Method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
- configurationParameter(String, String) - Method in class org.junit.platform.testkit.engine.EngineTestKit.Builder
-
Add the supplied configuration parameter.
- ConfigurationParameter - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParameter
is a repeatable annotation that specifies a configurationkey
andvalue
pair to be added to the discovery request when running a test suite on the JUnit Platform. - configurationParameters(Map<String, String>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied configuration parameters to the request.
- configurationParameters(Map<String, String>) - Method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
- configurationParameters(Map<String, String>) - Method in class org.junit.platform.testkit.engine.EngineTestKit.Builder
-
Add all of the supplied configuration parameters.
- ConfigurationParameters - Interface in org.junit.platform.engine
-
Configuration parameters that
TestEngines
may use to influence test discovery and execution. - ConfigurationParameters - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParameters
is a container for one or more@ConfigurationParameter
declarations. - ConsoleLauncher - Class in org.junit.platform.console
-
The
ConsoleLauncher
is a stand-alone application for launching the JUnit Platform from the console. - ConsoleLauncherExecutionResult - Class in org.junit.platform.console
- ConsoleLauncherToolProvider - Class in org.junit.platform.console
-
Run the JUnit Platform Console Launcher as a service.
- ConsoleLauncherToolProvider() - Constructor for class org.junit.platform.console.ConsoleLauncherToolProvider
- ConsoleTestExecutor - Class in org.junit.platform.console.tasks
- ConsoleTestExecutor(CommandLineOptions) - Constructor for class org.junit.platform.console.tasks.ConsoleTestExecutor
- Constants - Class in org.junit.jupiter.engine
-
Collection of constants related to the
JupiterTestEngine
. - container() - Static method in class org.junit.platform.testkit.engine.EventConditions
- container(Class<?>) - Static method in class org.junit.platform.testkit.engine.EventConditions
- container(String) - Static method in class org.junit.platform.testkit.engine.EventConditions
- container(Condition<Event>) - Static method in class org.junit.platform.testkit.engine.EventConditions
-
Create a new
Condition
that matches if and only if anEvent
matches the suppliedCondition
and its test descriptor is a container. - 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. - containerEvents() - Method in class org.junit.platform.testkit.engine.EngineExecutionResults
-
Get recorded events for containers.
- containsIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
contains any ISO control characters. - containsNoNullElements(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
null
elements. - containsNoNullElements(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
null
elements. - containsNoNullElements(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
null
elements. - containsNoNullElements(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
null
elements. - containsTests() - Method in class org.junit.platform.launcher.TestPlan
-
Return whether this test plan contains any tests.
- 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.
- containsWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
contains any whitespace characters. - convert(Object, Class<?>) - Method in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- convert(Object, Class<?>) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
-
Convert the supplied
source
object into the suppliedtargetType
. - convert(Object, ParameterContext) - Method in interface org.junit.jupiter.params.converter.ArgumentConverter
-
Convert the supplied
source
object according to the suppliedcontext
. - convert(Object, ParameterContext) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
- convert(Object, ParameterContext) - Method in class org.junit.jupiter.params.converter.TypedArgumentConverter
- convert(S) - Method in class org.junit.jupiter.params.converter.TypedArgumentConverter
-
Convert the supplied
source
object of typeS
into an object of typeT
. - ConvertWith - Annotation Interface in org.junit.jupiter.params.converter
-
@ConvertWith
is an annotation that allows one to specify an explicitArgumentConverter
. - count() - Method in class org.junit.platform.testkit.engine.Events
-
Get the number of events contained in this
Events
object. - count() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the number of executions contained in this
Executions
object. - countTestIdentifiers(Predicate<? super TestIdentifier>) - Method in class org.junit.platform.launcher.TestPlan
-
Count all
TestIdentifiers
that satisfy the given predicate. - create() - Method in interface org.junit.platform.engine.support.hierarchical.ThrowableCollector.Factory
-
Create a new instance of a
ThrowableCollector
. - create() - Static method in class org.junit.platform.launcher.core.LauncherFactory
- create(Object...) - Static method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
-
Create a namespace which restricts access to data to all extensions which use the same sequence of
parts
for creating a namespace. - create(String) - Static method in class org.junit.platform.engine.TestTag
-
Create a
TestTag
from the suppliedname
. - create(LauncherConfig) - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for creating a new
Launcher
using the suppliedLauncherConfig
. - 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.jupiter.engine.JupiterTestEngine
- 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.jupiter.engine.JupiterTestEngine
- createExecutorService(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the executor service to use for executing the supplied request.
- createRegistryFrom(MutableExtensionRegistry, Stream<Class<? extends Extension>>) - Static method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
-
Factory for creating and populating a new registry from a list of extension types and a parent registry.
- createRegistryWithDefaultExtensions(JupiterConfiguration) - Static method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
-
Factory for creating and populating a new root registry with the default extensions.
- createTestInstance(TestInstanceFactoryContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstanceFactory
-
Callback for creating a test instance for the supplied context.
- createThrowableCollector() - Static method in class org.junit.jupiter.engine.support.JupiterThrowableCollectorFactory
-
Create a new
ThrowableCollector
that treats instances of the OTA'sTestAbortedException
and JUnit 4'sorg.junit.AssumptionViolatedException
as aborting. - createThrowableCollectorFactory(ExecutionRequest) - Method in class org.junit.jupiter.engine.JupiterTestEngine
- 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. - CsvFileSource - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvFileSource
is anArgumentsSource
which is used to load comma-separated value (CSV) files from one or more classpathresources
orCsvFileSource.files()
. - CsvParsingException - Exception in org.junit.jupiter.params.provider
-
Thrown if an error is encountered while parsing CSV input.
- CsvParsingException(String) - Constructor for exception org.junit.jupiter.params.provider.CsvParsingException
- CsvParsingException(String, Throwable) - Constructor for exception org.junit.jupiter.params.provider.CsvParsingException
- CsvSource - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvSource
is anArgumentsSource
which reads comma-separated values (CSV) from one or more CSV lines supplied via theCsvSource.value()
attribute orCsvSource.textBlock()
attribute. - CURRENT_REPETITION_PLACEHOLDER - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Placeholder for the current repetition count of a
@RepeatedTest
method:{currentRepetition}
- currentVersion() - Static method in enum class org.junit.jupiter.api.condition.JRE
- 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.
All Classes|All Packages|Constant Field Values|Deprecated API|Serialized Form
EngineDiscoveryRequestResolver
instead.