Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
C
- CachingJupiterConfiguration - Class in org.junit.jupiter.engine.config
-
Caching implementation of the
JupiterConfigurationAPI. - 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
Callableand return a successfulTrythat contains the returned value or, in case an exception was thrown, a failedTrythat contains the exception. - canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- cancel() - Method in interface org.junit.platform.engine.CancellationToken
-
Request cancellation.
- cancellationToken(CancellationToken) - Method in class org.junit.platform.launcher.core.LauncherExecutionRequestBuilder
-
Set the cancellation token for the request.
- cancellationToken(CancellationToken) - Method in class org.junit.platform.testkit.engine.EngineTestKit.Builder
-
Set the
CancellationTokento use for execution. - CancellationToken - Interface in org.junit.platform.engine
-
Token that should be checked to determine whether an operation was requested to be cancelled.
- 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() - Method in interface org.junit.platform.engine.DiscoveryIssue
-
Returns the cause of this issue.
- cause(Throwable) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the cause of the assertion failure.
- cause(Throwable) - Method in interface org.junit.platform.engine.DiscoveryIssue.Builder
-
Set the
Throwablethat caused theDiscoveryIssue. - cause(Optional<Throwable>) - Method in interface org.junit.platform.engine.DiscoveryIssue.Builder
-
Set the
Throwablethat caused theDiscoveryIssue. - 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
charvalues to use as sources of arguments; must not be empty. - charset() - Static method in class org.junit.platform.console.options.ConsoleUtils
-
Returns the charset of the console.
- check(T) - Method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter.Condition
-
Evaluate this condition to potentially report an issue.
- children - Variable in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
The synchronized set of children associated with this
TestDescriptor. - CHILDREN - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceLockTarget
-
Add a shared resource to the direct children of the current node.
- CLASS_SCHEME - Static variable in class org.junit.platform.engine.support.descriptor.ClassSource
- ClassBasedTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptorfor tests based on Java classes. - ClassBasedTestDescriptor.ClassInfo - Class in org.junit.jupiter.engine.descriptor
- ClassDescriptor - Interface in org.junit.jupiter.api
-
ClassDescriptorencapsulates functionality for a givenClass. - classes() - Element in annotation interface org.junit.jupiter.params.provider.ValueSource
-
The
Classvalues to use as sources of arguments; must not be empty. - ClassFilter - Class in org.junit.platform.commons.support.scanning
-
Class-related predicate used by reflection utilities.
- classInfo - Variable in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- 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
-
DiscoveryFilterthat 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
-
ClassOrdererdefines the API for ordering top-level test classes and@Nestedtest classes. - ClassOrderer.ClassName - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes alphanumerically based on their fully qualified names usingString.compareTo(String). - ClassOrderer.DisplayName - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes alphanumerically based on their display names usingString.compareTo(String) - ClassOrderer.OrderAnnotation - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes based on the@Orderannotation. - ClassOrderer.Random - Class in org.junit.jupiter.api
-
ClassOrdererthat orders classes pseudo-randomly. - ClassOrdererContext - Interface in org.junit.jupiter.api
-
ClassOrdererContextencapsulates the context in which aClassOrdererwill be invoked. - CLASSPATH_SCHEME - Static variable in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- ClasspathResourceSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelectorthat selects the name of a classpath resource so thatTestEnginescan load resources from the classpath — for example, to load XML or JSON files from the classpath, potentially within JARs. - ClasspathResourceSelector.IdentifierParser - Class in org.junit.platform.engine.discovery
- ClasspathResourceSource - Class in org.junit.platform.engine.support.descriptor
-
Classpath resource based
TestSourcewith an optional position. - ClasspathRootSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelectorthat selects a classpath root so thatTestEnginescan search for class files or resources within the physical classpath — for example, to scan for test classes. - ClasspathRootSelector.IdentifierParser - Class in org.junit.platform.engine.discovery
- ClasspathScanner - Interface in org.junit.platform.commons.support.scanning
-
ClasspathScannerallows to scan the classpath for classes and resources. - ClassSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelectorthat selects aClassor class name so thatTestEnginescan discover tests or containers based on classes. - ClassSelector.IdentifierParser - Class in org.junit.platform.engine.discovery
- ClassSource - Class in org.junit.platform.engine.support.descriptor
-
Class based
TestSourcewith an optional file position. - ClassSupport - Class in org.junit.platform.commons.support
-
ClassSupportprovides 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. - ClassTemplate - Annotation Interface in org.junit.jupiter.api
-
@ClassTemplateis used to signal that the annotated class is a class template. - classTemplateAnnotation() - Element in annotation interface org.junit.jupiter.api.extension.ClassTemplateInvocationLifecycleMethod
-
The corresponding
ClassTemplate-derived annotation class. - ClassTemplateInvocationContext - Interface in org.junit.jupiter.api.extension
-
ClassTemplateInvocationContextrepresents the context of a single invocation of a@ClassTemplate. - ClassTemplateInvocationContextProvider - Interface in org.junit.jupiter.api.extension
-
ClassTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@ClassTemplate. - ClassTemplateInvocationLifecycleMethod - Annotation Interface in org.junit.jupiter.api.extension
-
Internal marker annotation for lifecycle methods specific to implementations of
ClassTemplateInvocationContextProvider. - ClassTemplateInvocationTestDescriptor - Class in org.junit.jupiter.engine.descriptor
- ClassTemplateInvocationTestDescriptor(UniqueId, ClassTemplateTestDescriptor, ClassTemplateInvocationContext, int, TestSource, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.ClassTemplateInvocationTestDescriptor
- ClassTemplateTestDescriptor - Class in org.junit.jupiter.engine.descriptor
- ClassTemplateTestDescriptor(UniqueId, ClassBasedTestDescriptor) - Constructor for class org.junit.jupiter.engine.descriptor.ClassTemplateTestDescriptor
- ClassTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptorfor 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() - Element in annotation interface org.junit.jupiter.api.io.TempDir
-
How the temporary directory gets cleaned up after the test completes.
- cleanUp(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Clean up the supplied
contextafter execution. - cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassTemplateInvocationTestDescriptor
- cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassTemplateTestDescriptor
- 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
- Clean Up - Search tag in annotation interface org.junit.jupiter.api.io.TempDir
- Section
- CleanupMode - Enum Class in org.junit.jupiter.api.io
-
Enumeration of cleanup modes for
@TempDir. - clear() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Clear all existing
log recordsthat 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
-
Deprecated.Close underlying resources.
- close() - Method in interface org.junit.jupiter.api.io.TempDirFactory
- 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 class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
If a
NamespacedHierarchicalStore.CloseActionis configured, it will be called with all successfully stored values in reverse insertion order. - close() - Method in interface org.junit.platform.launcher.LauncherInterceptor
-
Closes this interceptor.
- close() - Method in interface org.junit.platform.launcher.LauncherSession
-
Close this session and notify all registered
LauncherSessionListeners. - close(N, Object, Object) - Method in interface org.junit.platform.engine.support.store.NamespacedHierarchicalStore.CloseAction
-
Close the supplied
value. - CLOSE_AFTER_CALLING_LAUNCHER - Enum constant in enum class org.junit.platform.console.tasks.CustomClassLoaderCloseStrategy
-
Close the custom class loader after calling the
Launcherfor test discovery or execution. - closeAutoCloseables() - Static method in interface org.junit.platform.engine.support.store.NamespacedHierarchicalStore.CloseAction
- CLOSING_STORED_AUTO_CLOSEABLE_ENABLED_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- CLOSING_STORED_AUTO_CLOSEABLE_ENABLED_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to enable auto-closing of
AutoCloseableinstances - collecting(Collection<? super DiscoveryIssue>) - Static method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter
-
Create a new
DiscoveryIssueReporterthat adds reported issues to the supplied collection. - 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.
- CommandFacade - Class in org.junit.platform.console.options
-
Internal facade to run a CLI command that exists to hide implementation details such as the used library.
- CommandFacade(ConsoleTestExecutor.Factory) - Constructor for class org.junit.platform.console.options.CommandFacade
- CommandResult<T> - Class in org.junit.platform.console.options
- Common Use Cases - Search tag in annotation interface org.junit.platform.commons.annotation.Testable
- Section
- Composed Annotations - Search tag in annotation interface org.junit.jupiter.params.ParameterizedClass
- Section
- Composed Annotations - Search tag in annotation interface org.junit.jupiter.params.ParameterizedTest
- Section
- 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
filtersinclude 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
filtersinclude 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
- composite(TestDescriptor.Visitor...) - Static method in interface org.junit.platform.engine.TestDescriptor.Visitor
-
Combine the supplied
visitorsinto a singleVisitor. - CompositeTestSource - Class in org.junit.platform.engine.support.descriptor
-
A
CompositeTestSourcecontains one or moreTestSources. - Composition - Search tag in annotation interface org.junit.jupiter.api.AfterAll
- Section
- Composition - Search tag in annotation interface org.junit.jupiter.api.AfterEach
- Section
- Composition - Search tag in annotation interface org.junit.jupiter.api.BeforeAll
- Section
- Composition - Search tag in annotation interface org.junit.jupiter.api.BeforeEach
- Section
- Composition - Search tag in annotation interface org.junit.jupiter.params.AfterParameterizedClassInvocation
- Section
- Composition - Search tag in annotation interface org.junit.jupiter.params.BeforeParameterizedClassInvocation
- Section
- Composition - Search tag in annotation interface org.junit.platform.suite.api.AfterSuite
- Section
- Composition - Search tag in annotation interface org.junit.platform.suite.api.BeforeSuite
- Section
- computeIfAbsent(Class<V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Return the object of type
typeif it is present and notnullin thisStore(keyed bytype); otherwise, invoke the default constructor fortypeto generate the object, store it, and return it. - computeIfAbsent(K, Function<? super K, ? extends V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Return the value of the specified required type that is stored under the supplied
key. - computeIfAbsent(K, Function<? super K, ? extends V>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- computeIfAbsent(K, Function<? super K, ? extends V>, Class<V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Get the value of the specified required type that is stored under the supplied
key. - computeIfAbsent(K, Function<? super K, ? extends V>, Class<V>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- computeIfAbsent(N, K, Function<? super K, ? extends V>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Return the value stored for the supplied namespace and key in this store or the parent store, if present and not
null, or call the supplied function to compute it. - computeIfAbsent(N, K, Function<? super K, ? extends V>, Class<V>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Return the value stored for the supplied namespace and key in this store or the parent store, if present and not
null, or call the supplied function to compute it and, finally, cast it to the supplied required type. - 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
predicateistrue. - condition(boolean, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicateistrue. - ConditionEvaluationResult - Class in org.junit.jupiter.api.extension
-
The result of evaluating an
ExecutionCondition. - ConditionEvaluator - Class in org.junit.jupiter.engine.execution
-
ConditionEvaluatorevaluatesExecutionConditionextensions. - 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
Throwableand message from the providedmessageSupplierat config level. - config(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplierat 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
ParallelExecutionConfigurationStrategyto be used by theDefaultParallelExecutionConfigurationStrategy.CUSTOMconfiguration 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.DYNAMICconfiguration 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.DYNAMICconfiguration 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.DYNAMICconfiguration 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.FIXEDconfiguration 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.FIXEDconfiguration 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.FIXEDconfiguration 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.
- Configuration and Defaults - Search tag in class org.junit.platform.launcher.listeners.UniqueIdTrackingListener
- Section
- 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.testkit.engine.EngineTestKit.Builder
-
Add the supplied configuration parameter.
- ConfigurationParameter - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParameteris a repeatable annotation that specifies a configurationkeyandvaluepair 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 supplied configuration parameters to the request.
- 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
TestEnginesmay use to influence test discovery and execution. - ConfigurationParameters - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParametersis a container for one or more@ConfigurationParameterdeclarations. - ConfigurationParametersResource - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParametersResourceis a repeatable annotation that specifies a configuration file in Java's properties format on the classpath to be added to the discovery request when running a test suite on the JUnit Platform. - configurationParametersResources(String...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied configuration parameters resource files to the request.
- ConfigurationParametersResources - Annotation Interface in org.junit.platform.suite.api
-
@ConfigurationParametersResourcesis a container for one or more@ConfigurationParametersResourcedeclarations. - configure(UnaryOperator<UniqueId>, DynamicDescendantFilter) - Method in class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- ConsoleLauncher - Class in org.junit.platform.console
-
The
ConsoleLauncheris a stand-alone application for launching the JUnit Platform from the 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(TestDiscoveryOptions, TestConsoleOutputOptions) - Constructor for class org.junit.platform.console.tasks.ConsoleTestExecutor
- ConsoleTestExecutor(TestDiscoveryOptions, TestConsoleOutputOptions, CustomClassLoaderCloseStrategy) - Constructor for class org.junit.platform.console.tasks.ConsoleTestExecutor
- ConsoleTestExecutor.Factory - Interface in org.junit.platform.console.tasks
- ConsoleUtils - Class in org.junit.platform.console.options
-
Collection of utilities for working with
java.io.Consoleand friends. - Constants - Class in org.junit.jupiter.engine
-
Collection of constants related to the
JupiterTestEngine. - Constants - Class in org.junit.vintage.engine
-
Deprecated.Should only be used temporarily while migrating tests to JUnit Jupiter or another testing framework with native JUnit Platform support
- Constructor Injection - Search tag in annotation interface org.junit.jupiter.params.ParameterizedClass
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.AfterAllCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.AfterClassTemplateInvocationCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.AfterEachCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.BeforeAllCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.BeforeClassTemplateInvocationCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.BeforeEachCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.ExecutionCondition
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.Extension
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.InvocationInterceptor
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.ParameterResolver
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestInstanceFactory
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestInstancePreConstructCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
- Section
- Constructor Requirements - Search tag in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
- Section
- consuming(Consumer<? super DiscoveryIssue>) - Static method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter
-
Create a new
DiscoveryIssueReporterthat adds reported issues to the supplied consumer. - 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
Conditionthat matches if and only if anEventmatches the suppliedConditionand its test descriptor is a container. - CONTAINER - Enum constant in enum class org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptoris for a container. - CONTAINER_AND_TEST - Enum constant in enum class org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptoris 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
Stringcontains any ISO control characters. - containsNoNullElements(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
nullelements. - containsNoNullElements(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
nullelements. - containsNoNullElements(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
nullelements. - containsNoNullElements(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
nullelements. - 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
Stringcontains any whitespace characters. - Contract - Annotation Interface in org.junit.platform.commons.annotation
-
Specifies some aspects of the annotated method's behavior to be used by tools for data flow analysis.
- contributeSectionsForTestNode(Contributor.Context) - Method in class org.junit.platform.reporting.open.xml.JUnitContributor
- ConversionException - Exception Class in org.junit.platform.commons.support.conversion
-
ConversionExceptionis an exception that can occur when an object is converted to another object. - ConversionException(String) - Constructor for exception class org.junit.platform.commons.support.conversion.ConversionException
- ConversionException(String, Throwable) - Constructor for exception class org.junit.platform.commons.support.conversion.ConversionException
- ConversionSupport - Class in org.junit.platform.commons.support.conversion
-
ConversionSupportprovides static utility methods for converting a given object into an instance of a specified type. - convert(S) - Method in class org.junit.jupiter.params.converter.TypedArgumentConverter
-
Convert the supplied
sourceobject of typeSinto an object of typeT. - convert(Object, Class<?>) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
-
Convert the supplied
sourceobject into the suppliedtargetType. - convert(Object, Class<?>, A) - Method in class org.junit.jupiter.params.converter.AnnotationBasedArgumentConverter
-
Convert the supplied
sourceobject into the suppliedtargetType, based on metadata in the provided annotation. - convert(Object, Class<?>, ClassLoader) - Method in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- convert(Object, ParameterContext) - Method in class org.junit.jupiter.params.converter.AnnotationBasedArgumentConverter
- convert(Object, ParameterContext) - Method in interface org.junit.jupiter.params.converter.ArgumentConverter
-
Convert the supplied
sourceobject according to the suppliedcontext. - convert(Object, ParameterContext) - Method in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- 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(Object, FieldContext) - Method in class org.junit.jupiter.params.converter.AnnotationBasedArgumentConverter
- convert(Object, FieldContext) - Method in interface org.junit.jupiter.params.converter.ArgumentConverter
-
Convert the supplied
sourceobject according to the suppliedcontext. - convert(Object, FieldContext) - Method in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- convert(Object, FieldContext) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
- convert(Object, FieldContext) - Method in class org.junit.jupiter.params.converter.TypedArgumentConverter
- convert(String, Class<T>, ClassLoader) - Static method in class org.junit.platform.commons.support.conversion.ConversionSupport
-
Convert the supplied source
Stringinto an instance of the specified target type. - ConvertWith - Annotation Interface in org.junit.jupiter.params.converter
-
@ConvertWithis an annotation that allows one to specify an explicitArgumentConverter. - copy(UnaryOperator<UniqueId>) - Method in class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- copyIncludingDescendants(UnaryOperator<UniqueId>) - Method in class org.junit.jupiter.engine.descriptor.ClassTemplateTestDescriptor
- copyIncludingDescendants(UnaryOperator<UniqueId>) - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
-
Returns a deep copy (with copies of children) of this descriptor with the supplied unique ID.
- count() - Method in class org.junit.platform.testkit.engine.Events
-
Get the number of events contained in this
Eventsobject. - count() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the number of executions contained in this
Executionsobject. - countTestIdentifiers(Predicate<? super TestIdentifier>) - Method in class org.junit.platform.launcher.TestPlan
-
Count all
TestIdentifiersthat satisfy the given predicate. - create() - Static method in interface org.junit.platform.engine.CancellationToken
-
Create a new, uncancelled cancellation token.
- 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(int, T) - Static method in class org.junit.platform.console.options.CommandResult
- create(int, ClassLoader, Object[]) - Static method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- 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
partsfor creating a namespace. - create(Object...) - Static method in class org.junit.platform.engine.support.store.Namespace
-
Create a namespace which restricts access to data to all extensions which use the same sequence of
partsfor creating a namespace. - create(String) - Static method in class org.junit.platform.engine.TestTag
-
Create a
TestTagfrom the suppliedname. - create(String, String) - Static method in class org.junit.jupiter.api.extension.MediaType
-
Create a media type with the given type and subtype.
- create(String, String) - Static method in class org.junit.platform.engine.DiscoverySelectorIdentifier
-
Create a new
DiscoverySelectorIdentifierwith the supplied prefix and value. - create(String, String, Charset) - Static method in class org.junit.jupiter.api.extension.MediaType
-
Create a media type with the given type, subtype, and charset.
- create(List<Object>) - Static method in class org.junit.platform.engine.support.store.Namespace
-
Create a namespace which restricts access to data to all extensions which use the same sequence of
objectsfor creating a namespace. - create(Optional<String>) - Static method in class org.junit.platform.launcher.listeners.OutputDir
- create(ExtensionContext, ExtensionContext, JupiterConfiguration) - Static method in interface org.junit.jupiter.engine.execution.ExtensionContextSupplier
- create(TestDiscoveryOptions, TestConsoleOutputOptions) - Method in interface org.junit.platform.console.tasks.ConsoleTestExecutor.Factory
- create(DiscoveryIssue.Severity, String) - Static method in interface org.junit.platform.engine.DiscoveryIssue
-
Create a new
DiscoveryIssuewith the suppliedDiscoveryIssue.Severityand message. - create(TestDescriptor, EngineExecutionListener, ConfigurationParameters) - Static method in class org.junit.platform.engine.ExecutionRequest
-
Deprecated.without replacement
- create(TestDescriptor, EngineExecutionListener, ConfigurationParameters, OutputDirectoryProvider, NamespacedHierarchicalStore<Namespace>, CancellationToken) - Static method in class org.junit.platform.engine.ExecutionRequest
-
Factory for creating an execution request.
- create(LauncherConfig) - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for creating a new
Launcherusing 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.
- createFile(String, String) - Method in class org.junit.platform.launcher.listeners.OutputDir
- createIssue(Class<? extends Annotation>, Method, String) - Static method in class org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod
- createIssue(Class<? extends Annotation>, Method, String) - Static method in class org.junit.jupiter.engine.discovery.predicates.IsTestMethod
- createIssue(Class<? extends Annotation>, Method, String) - Static method in class org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod
- createOutputDirectory(TestDescriptor) - Method in interface org.junit.platform.engine.reporting.OutputDirectoryProvider
-
Create an output directory for the supplied test descriptor.
- 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.
- createReportingCondition(Predicate<T>, Function<T, DiscoveryIssue>) - Method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter
-
Create a
DiscoveryIssueReporter.Conditionthat reports aDiscoveryIssuewhen the suppliedPredicateis not met. - createTempDirectory(AnnotatedElementContext, ExtensionContext) - Method in interface org.junit.jupiter.api.io.TempDirFactory
-
Create a new temporary directory.
- createTempDirectory(AnnotatedElementContext, ExtensionContext) - Method in class org.junit.jupiter.api.io.TempDirFactory.Standard
- 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
ThrowableCollectorthat treats instances of the OTA'sTestAbortedExceptionand JUnit 4'sorg.junit.AssumptionViolatedExceptionas 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
ThrowableCollectorinstances used to handle exceptions that occur during execution of this engine's tests. - createTimeoutFailure(Duration, Supplier<String>, Throwable, Thread) - Method in interface org.junit.jupiter.api.util.PreemptiveTimeoutUtils.TimeoutFailureFactory
-
Create a failure for the given timeout, message, and cause.
- Creation - Search tag in annotation interface org.junit.jupiter.api.io.TempDir
- Section
- CRITICAL_DISCOVERY_ISSUE_SEVERITY_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the critical severity of issues encountered during test discovery.
- CsvFileSource - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvFileSourceis a repeatableArgumentsSourcewhich is used to load comma-separated value (CSV) files from one or more classpathCsvFileSource.resources()orCsvFileSource.files(). - CsvFileSources - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvFileSourcesis a simple container for one or moreCsvFileSourceannotations. - CsvParsingException - Exception Class in org.junit.jupiter.params.provider
-
Thrown if an error is encountered while parsing CSV input.
- CsvParsingException(String) - Constructor for exception class org.junit.jupiter.params.provider.CsvParsingException
- CsvParsingException(String, Throwable) - Constructor for exception class org.junit.jupiter.params.provider.CsvParsingException
- CsvSource - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvSourceis a repeatableArgumentsSourcewhich reads comma-separated values (CSV) from one or more CSV records supplied via theCsvSource.value()attribute orCsvSource.textBlock()attribute. - CsvSources - Annotation Interface in org.junit.jupiter.params.provider
-
@CsvSourcesis a simple container for one or moreCsvSourceannotations. - current() - Static method in enum class org.junit.jupiter.api.condition.OS
-
Returns the current operating system, if known; otherwise,
null. - CURRENT_REPETITION_PLACEHOLDER - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Placeholder for the current repetition count of a
@RepeatedTestmethod:{currentRepetition} - currentJre() - Static method in enum class org.junit.jupiter.api.condition.JRE
- Currently Unrecoverable Exceptions - Search tag in class org.junit.platform.commons.util.UnrecoverableExceptions
- Section
- currentVersion() - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated.in favor of
JRE.currentJre() - currentVersionNumber() - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Returns the version number for the currently executing JVM, or
-1if the current JVM version could not be determined. - CUSTOM - Enum constant in enum class org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Allows the specification of a custom
ParallelExecutionConfigurationStrategyimplementation via the mandatory "custom.class" configuration parameter to determine the desired configuration. - CustomClassLoaderCloseStrategy - Enum Class in org.junit.platform.console.tasks
-
Defines the strategy for closing custom class loaders created for test discovery and execution.
- Custom Seed - Search tag in class org.junit.jupiter.api.ClassOrderer.Random
- Section
- Custom Seed - Search tag in class org.junit.jupiter.api.MethodOrderer.Random
- Section
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form