Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
S
- SAME_THREAD - Enum constant in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Force execution in same thread as the parent node.
- SAME_THREAD - Enum constant in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
The test code is executed in the thread of the calling code.
- 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
- Scope - Search tag in annotation interface org.junit.jupiter.api.io.TempDir
- Section
- SCOPE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.io.TempDir
-
Deprecated.
- Scope and Lifecycle - Search tag in annotation interface org.junit.jupiter.api.AutoClose
- Section
- Search Algorithm - Search tag in org.junit.platform.commons.support.conversion.ConversionSupport.convert(String, Class<T>, ClassLoader)
- Section
- SearchOption - Enum Class in org.junit.platform.commons.support
-
Search options for finding an annotation within a class hierarchy.
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- SEGMENT_TYPE_DYNAMIC - Static variable in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- SEGMENT_TYPE_RUNNER - Static variable in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- SEGMENT_TYPE_TEST - Static variable in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- Select - Annotation Interface in org.junit.platform.suite.api
-
@Select
is a repeatable annotation that specifies which tests to select based on prefixed selector identifiers. - 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. - SelectClasses - Annotation Interface in org.junit.platform.suite.api
-
@SelectClasses
specifies the classes to select when running a test suite on the JUnit Platform. - 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. - selectClasspathResource(Set<Resource>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClasspathResourceSelector
for the supplied classpath resources. - SelectClasspathResource - Annotation Interface in org.junit.platform.suite.api
-
@SelectClasspathResource
is a repeatable annotation that specifies a classpath resource to select when running a test suite on the JUnit Platform. - SelectClasspathResources - Annotation Interface in org.junit.platform.suite.api
-
@SelectClasspathResources
is a container for one or more@SelectClasspathResource
declarations. - 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). - SelectDirectories - Annotation Interface in org.junit.platform.suite.api
-
@SelectDirectories
specifies the directories to select when running a test suite on the JUnit Platform. - 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. - SelectFile - Annotation Interface in org.junit.platform.suite.api
-
@SelectFile
is a repeatable annotation that specifies a file to select when running a test suite on the JUnit Platform. - SelectFiles - Annotation Interface in org.junit.platform.suite.api
-
@SelectFiles
is a container for one or more@SelectFile
declarations. - 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. - SelectMethod - Annotation Interface in org.junit.platform.suite.api
-
@SelectMethod
is a repeatable annotation that specifies a method to select when running a test suite on the JUnit Platform. - SelectMethods - Annotation Interface in org.junit.platform.suite.api
-
@SelectMethods
is a container for one or more@SelectMethod
declarations. - 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. - SelectModules - Annotation Interface in org.junit.platform.suite.api
-
@SelectModules
specifies the modules to select when running a test suite on the JUnit Platform. - 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(List<? extends DiscoverySelector>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all supplied
selectors
to the request. - selectors(List<? extends DiscoverySelector>) - Method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
-
Add all supplied
selectors
to the request. - 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
. - selectors(DiscoverySelector...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all supplied
selectors
to the request. - selectors(DiscoverySelector...) - Method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
-
Add all supplied
selectors
to the request. - selectors(DiscoverySelector...) - Method in class org.junit.platform.testkit.engine.EngineTestKit.Builder
-
Add all of the supplied discovery selectors.
- selectPackage(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
PackageSelector
for the supplied package name. - SelectPackages - Annotation Interface in org.junit.platform.suite.api
-
@SelectPackages
specifies the names of packages to select when running a test suite on the JUnit Platform. - Selects - Annotation Interface in org.junit.platform.suite.api
-
@Selects
is a container for one or more@Select
declarations. - 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
. - SelectUris - Annotation Interface in org.junit.platform.suite.api
-
@SelectUris
specifies the URIs to select when running a test suite on the JUnit Platform. - Semantics for Source - Search tag in org.junit.jupiter.engine.extension.ExtensionRegistrar.registerExtension(Extension, Object)
- Section
- Semantics for Source - Search tag in org.junit.jupiter.engine.extension.ExtensionRegistrar.registerExtension(Extension, Object)
- Section
- SEPARATE_THREAD - Enum constant in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
The test code is executed in a different thread than that of the calling code.
- separator() - Element in annotation interface org.junit.jupiter.api.IndicativeSentencesGeneration
-
Custom separator for sentence fragments.
- ServiceLoaderTestEngineRegistry - Class in org.junit.platform.launcher.core
- ServiceLoaderTestEngineRegistry() - Constructor for class org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry
- setAdditionalClasspathEntries(List<Path>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setAnsiColorOutputDisabled(boolean) - Method in class org.junit.platform.console.options.TestConsoleOutputOptions
- setColorPalettePath(Path) - Method in class org.junit.platform.console.options.TestConsoleOutputOptions
- setConfigurationParameters(Map<String, String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setConfigurationParametersResources(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setDefaultChildExecutionMode(Node.ExecutionMode) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- setDetails(Details) - Method in class org.junit.platform.console.options.TestConsoleOutputOptions
- setExcludedClassNamePatterns(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setExcludedEngines(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setExcludedMethodNamePatterns(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setExcludedPackages(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setExcludedTagExpressions(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setIncludedClassNamePatterns(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setIncludedEngines(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setIncludedMethodNamePatterns(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setIncludedPackages(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setIncludedTagExpressions(List<String>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- 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.
- setScanClasspath(boolean) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setScanModulepath(boolean) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedClasses(List<ClassSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedClasspathEntries(List<Path>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedClasspathResources(List<ClasspathResourceSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedDirectories(List<DirectorySelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedFiles(List<FileSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedIterations(List<IterationSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedMethods(List<MethodSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedModules(List<ModuleSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedPackages(List<PackageSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedUniqueId(List<UniqueIdSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectedUris(List<UriSelector>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSelectorIdentifiers(List<DiscoverySelectorIdentifier>) - Method in class org.junit.platform.console.options.TestDiscoveryOptions
- setSingleColorPalette(boolean) - Method in class org.junit.platform.console.options.TestConsoleOutputOptions
- setTheme(Theme) - Method in class org.junit.platform.console.options.TestConsoleOutputOptions
- SHORT_DISPLAY_NAME - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Short display name pattern for a repeated test: "repetition {currentRepetition} of {totalRepetitions}"
- shorts() - Element in annotation interface org.junit.jupiter.params.provider.ValueSource
-
The
short
values to use as sources of arguments; must not be empty. - shouldBeSkipped(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Determine if the execution of the supplied
context
should be skipped. - shouldBeSkipped(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
- Simple() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.Simple
- SimpleArgumentConverter - Class in org.junit.jupiter.params.converter
-
SimpleArgumentConverter
is an abstract base class forArgumentConverter
implementations that only need to know the target type and do not need access to theParameterContext
to perform the conversion. - SimpleArgumentConverter() - Constructor for class org.junit.jupiter.params.converter.SimpleArgumentConverter
- 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.jupiter.params.aggregator.ArgumentsAccessor
-
Get the number of arguments in this accessor.
- size() - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- 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() - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
-
Explicitly skip this invocation.
- skip(String) - Static method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Factory for creating skipped results.
- skipped() - Method in enum class org.junit.platform.console.options.Theme
- skipped() - Method in class org.junit.platform.testkit.engine.Events
-
Get the skipped
Events
contained in thisEvents
object. - skipped() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the skipped
Executions
contained in thisExecutions
object. - skipped() - Method in class org.junit.platform.testkit.engine.TerminationInfo
-
Determine if this
TerminationInfo
represents a skipped execution. - skipped(long) - Method in class org.junit.platform.testkit.engine.EventStatistics
-
Specify the number of expected skipped events.
- skipped(String) - Static method in class org.junit.platform.testkit.engine.TerminationInfo
-
Create a skipped
TerminationInfo
instance for the supplied reason. - skipped(TestDescriptor, Instant, Instant, String) - Static method in class org.junit.platform.testkit.engine.Execution
-
Create a new instance of an
Execution
that was skipped with the providedskipReason
. - SKIPPED - Enum constant in enum class org.junit.platform.testkit.engine.EventType
-
Signals that the execution of a
TestDescriptor
has been skipped. - skippedWithReason(String) - Static method in class org.junit.platform.testkit.engine.EventConditions
- skippedWithReason(Predicate<String>) - Static method in class org.junit.platform.testkit.engine.EventConditions
- SOLARIS - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
Oracle Solaris operating system.
- splitIntoTwo(char, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Split the supplied
String
into up to two parts using the supplied separator character. - splitIntoTwo(String, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Split the supplied
String
into up to two parts using the supplied separator string. - STACKTRACE_PRUNING_ENABLED_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable or disable stack trace pruning.
- Standard() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.Standard
- Standard() - Constructor for class org.junit.jupiter.api.io.TempDirFactory.Standard
- 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?)$"
- started() - Static method in class org.junit.platform.testkit.engine.EventConditions
- started() - Method in class org.junit.platform.testkit.engine.Events
-
Get the started
Events
contained in thisEvents
object. - started() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the started
Executions
contained in thisExecutions
object. - started(long) - Method in class org.junit.platform.testkit.engine.EventStatistics
-
Specify the number of expected started events.
- STARTED - Enum constant in enum class org.junit.platform.testkit.engine.EventType
-
Signals that the execution of a
TestDescriptor
has started. - Static Fields - Search tag in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Section
- status(TestExecutionResult) - Method in enum class org.junit.platform.console.options.Theme
- status(TestExecutionResult.Status) - Static method in class org.junit.platform.testkit.engine.TestExecutionResultConditions
-
Create a new
Condition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
. - STDERR_REPORT_ENTRY_KEY - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Key used to publish captured output to
System.err
as part of aReportEntry
: "stderr" - STDOUT_REPORT_ENTRY_KEY - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Key used to publish captured output to
System.out
as part of aReportEntry
: "stdout" - stream() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log records
that have been submitted to this listener by the current thread. - stream() - Method in class org.junit.platform.testkit.engine.Events
- stream() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the executions as a
Stream
. - stream(Class<?>) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log records
that have been submitted to this listener by the current thread for the logger name equal to the name of the given class. - stream(Class<?>, Level) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log records
that have been submitted to this listener by the current thread for the logger name equal to the name of the given class at the given log level. - stream(Class<E>) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistry
-
Stream all
Extensions
of the specified type that are present in this registry or one of its ancestors. - stream(Class<E>) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- stream(Iterator<? extends Named<T>>, ThrowingConsumer<? super T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given generator and test executor.
- stream(Iterator<? extends T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given iterator.
- stream(Iterator<T>, Function<? super T, String>, ThrowingConsumer<? super T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given generator and test executor.
- stream(Level) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Get a stream of
log records
that have been submitted to this listener by the current thread at the given log level. - stream(Stream<? extends Named<T>>, ThrowingConsumer<? super T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream and test executor.
- stream(Stream<? extends T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream.
- stream(Stream<T>, Function<? super T, String>, ThrowingConsumer<? super T>) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream and test executor.
- streamAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all classes in the supplied classpath
root
that match the specifiedclassFilter
andclassNameFilter
predicates. - streamAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllClassesInClasspathRoot(URI, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllClassesInModule(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all classes in the supplied
moduleName
that match the specifiedclassFilter
andclassNameFilter
predicates. - streamAllClassesInModule(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllClassesInModule(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all classes in the supplied
basePackageName
that match the specifiedclassFilter
andclassNameFilter
predicates. - streamAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
since 1.10
- streamAllClassesInPackage(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllResourcesInClasspathRoot(URI, Predicate<Resource>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all resources in the supplied classpath
root
that match the specifiedresourceFilter
predicate. - streamAllResourcesInClasspathRoot(URI, Predicate<Resource>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllResourcesInModule(String, Predicate<Resource>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
- streamAllResourcesInModule(String, Predicate<Resource>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamAllResourcesInPackage(String, Predicate<Resource>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all resources in the supplied
basePackageName
that match the specifiedresourceFilter
predicate. - streamAllResourcesInPackage(String, Predicate<Resource>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamFields(Class<?>, Predicate<Field>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all distinct fields of the supplied class or interface that match the specified
predicate
. - streamFields(Class<?>, Predicate<Field>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamMethods(Class<?>, Predicate<Method>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all distinct methods of the supplied class or interface that match the specified
predicate
. - streamMethods(Class<?>, Predicate<Method>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- streamNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all nested classes within the supplied class, or inherited by the supplied class, that conform to the supplied predicate.
- streamNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
since 1.10
- STRICT - Enum constant in enum class org.junit.jupiter.params.ArgumentCountValidationMode
-
Use the strict argument count validation mode.
- strings() - Element in annotation interface org.junit.jupiter.params.provider.ValueSource
-
The
String
values to use as sources of arguments; must not be empty. - StringUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Strings
,CharSequences
, etc. - StringUtils.TwoPartSplitResult - Interface in org.junit.platform.commons.util
-
The result of splitting a string into up to two parts.
- stripQueryComponent(URI) - Static method in class org.junit.platform.commons.util.ResourceUtils
- 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
- succeeded() - Method in class org.junit.platform.testkit.engine.Events
-
Get the succeeded
Events
contained in thisEvents
object. - succeeded() - Method in class org.junit.platform.testkit.engine.Executions
-
Get the succeeded
Executions
contained in thisExecutions
object. - succeeded(long) - Method in class org.junit.platform.testkit.engine.EventStatistics
-
Specify the number of expected succeeded events.
- success() - Static method in class org.junit.platform.console.options.CommandResult
- success(V) - Static method in class org.junit.platform.commons.function.Try
-
Convert the supplied value into a succeeded
Try
. - SUCCESS - Static variable in class org.junit.platform.console.options.CommandResult
-
Exit code indicating successful execution
- successful() - Method in enum class org.junit.platform.console.options.Theme
- successful() - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for a successful execution of a test or container. - successful() - Static method in class org.junit.platform.launcher.EngineDiscoveryResult
-
Create a
EngineDiscoveryResult
for a successful test discovery. - SUCCESSFUL - Enum constant in enum class org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container was successful.
- SUCCESSFUL - Enum constant in enum class org.junit.platform.launcher.EngineDiscoveryResult.Status
-
Indicates that test discovery was successful.
- suite(Class<?>) - Method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
-
Deprecated.
- Suite - Annotation Interface in org.junit.platform.suite.api
-
@Suite
marks a class as a test suite on the JUnit Platform. - SuiteDisplayName - Annotation Interface in org.junit.platform.suite.api
-
@SuiteDisplayName
is used to declare a custom display name for the annotated test class that is executed as a test suite on the JUnit Platform. - SuiteLauncherDiscoveryRequestBuilder - Class in org.junit.platform.suite.commons
-
The
SuiteLauncherDiscoveryRequestBuilder
provides a light-weight DSL for generating aLauncherDiscoveryRequest
specifically tailored for suite execution. - SuiteTestEngine - Class in org.junit.platform.suite.engine
-
The JUnit Platform Suite
TestEngine
. - SuiteTestEngine() - Constructor for class org.junit.platform.suite.engine.SuiteTestEngine
- SUMMARY - Enum constant in enum class org.junit.platform.console.options.Details
-
Print summary table of counts only.
- SummaryGeneratingListener - Class in org.junit.platform.launcher.listeners
-
Simple
TestExecutionListener
that generates a summary of the test execution. - SummaryGeneratingListener() - Constructor for class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- Supported Extension APIs - Search tag in annotation interface org.junit.jupiter.api.extension.ExtendWith
- Section
- Supported Extension APIs - Search tag in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Section
- Supported Parameter Types - Search tag in annotation interface org.junit.jupiter.params.provider.EmptySource
- Section
- Supported placeholders - Search tag in org.junit.jupiter.api.RepeatedTest.name()
- Section
- Supported placeholders - Search tag in org.junit.jupiter.params.ParameterizedTest.name()
- Section
- Supported Target Elements - Search tag in annotation interface org.junit.platform.commons.annotation.Testable
- Section
- Supported timeout mode values: - Search tag in org.junit.jupiter.api.Timeout.TIMEOUT_MODE_PROPERTY_NAME
- Section
- Supported Values - Search tag in annotation interface org.junit.jupiter.api.Timeout
- Section
- Supported Values - Search tag in org.junit.jupiter.api.ClassOrderer.DEFAULT_ORDER_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.ClassOrderer.Random.RANDOM_SEED_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.DisplayNameGenerator.DEFAULT_GENERATOR_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.MethodOrderer.DEFAULT_ORDER_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.MethodOrderer.Random.RANDOM_SEED_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.TestInstance.Lifecycle.DEFAULT_LIFECYCLE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope.DEFAULT_SCOPE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.io.TempDir.DEFAULT_FACTORY_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.io.TempDir.SCOPE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.parallel.Execution.DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.jupiter.api.parallel.Execution.DEFAULT_EXECUTION_MODE_PROPERTY_NAME
- Section
- Supported Values - Search tag in org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder.DEFAULT_DISCOVERY_LISTENER_CONFIGURATION_PROPERTY_NAME
- Section
- supportsParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Determine if this resolver supports resolution of an argument for the
Parameter
in the suppliedParameterContext
for the suppliedExtensionContext
. - supportsParameter(ParameterContext, ExtensionContext) - Method in class org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
- supportsTestTemplate(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
Determine if this provider supports providing invocation contexts for the test template method represented by the supplied
context
. - suppressed(int, Condition<Throwable>...) - Static method in class org.junit.platform.testkit.engine.TestExecutionResultConditions
-
Create a new
Condition
that matches if and only if aThrowable
's suppressed throwable at the supplied index matches all supplied conditions. - Syntax Rules for Tags - Search tag in annotation interface org.junit.jupiter.api.Tag
- Section
- Syntax Rules for Tags - Search tag in annotation interface org.junit.platform.suite.api.ExcludeTags
- Section
- Syntax Rules for Tags - Search tag in annotation interface org.junit.platform.suite.api.IncludeTags
- Section
- Syntax Rules for Tags - Search tag in org.junit.platform.engine.TestTag.isValid(String)
- Section
- SYSTEM_ERR - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard error stream of the current process: "java.lang.System.err"
- SYSTEM_OUT - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard output stream of the current process: "java.lang.System.out"
- SYSTEM_PROPERTIES - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents Java's system properties: "java.lang.System.properties"
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
ThrowableCollector.execute(org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable)
andThrowableCollector.toTestExecutionResult()
instead.