Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
R
- Random() - Constructor for class org.junit.jupiter.api.ClassOrderer.Random
- Random() - Constructor for class org.junit.jupiter.api.MethodOrderer.Random
- RANDOM_SEED_PROPERTY_NAME - Static variable in class org.junit.jupiter.api.ClassOrderer.Random
-
Property name used to set the random seed used by this
ClassOrderer
: "junit.jupiter.execution.order.random.seed" - RANDOM_SEED_PROPERTY_NAME - Static variable in class org.junit.jupiter.api.MethodOrderer.Random
-
Property name used to set the random seed used by this
MethodOrderer
: "junit.jupiter.execution.order.random.seed" - READ - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require only read access to the resource.
- READ - Enum constant in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Require only read access to the resource.
- READ_WRITE - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require read and write access to the resource.
- READ_WRITE - Enum constant in enum class org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Require read and write access to the resource.
- readFieldValue(Class<T>, String, T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.
- readFieldValue(Field) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToReadFieldValue(Field)
instead. - readFieldValue(Field, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToReadFieldValue(Field, Object)
instead. - readFieldValues(List<Field>, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Read the values of the supplied fields, making each field accessible if necessary and masking any checked exception as an unchecked exception.
- readFieldValues(List<Field>, Object, Predicate<Field>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Read the values of the supplied fields, making each field accessible if necessary, masking any checked exception as an unchecked exception, and filtering out fields that do not pass the supplied
predicate
. - readStackTrace(Throwable) - Static method in class org.junit.platform.commons.util.ExceptionUtils
-
Read the stacktrace of the supplied
Throwable
into a String. - reason(String) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the reason why the assertion failed.
- reason(String) - Static method in class org.junit.platform.testkit.engine.EventConditions
- reason(Predicate<String>) - Static method in class org.junit.platform.testkit.engine.EventConditions
- ReflectionSupport - Class in org.junit.platform.commons.support
-
ReflectionSupport
provides static utility methods for common reflection tasks — for example, scanning for classes in the class-path or module-path, loading classes, finding methods, invoking methods, etc. - ReflectionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with the Java reflection APIs.
- ReflectionUtils.HierarchyTraversalMode - Enum Class in org.junit.platform.commons.util
-
Modes in which a hierarchy can be traversed — for example, when searching for methods or fields within a class hierarchy.
- ReflectiveInvocationContext<T extends Executable> - Interface in org.junit.jupiter.api.extension
-
ReflectiveInvocationContext
encapsulates the context of a reflective invocation of an executable (method or constructor). - registerExtension(Class<? extends Extension>) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Instantiate an extension of the given type using its default constructor and register it in the registry.
- registerExtension(Class<? extends Extension>) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- registerExtension(Extension, Object) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Register the supplied
Extension
, without checking if an extension of that type has already been registered. - registerExtension(Extension, Object) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- RegisterExtension - Annotation Interface in org.junit.jupiter.api.extension
-
@RegisterExtension
is used to register anExtension
via a field in a test class. - registerLauncherDiscoveryListeners(LauncherDiscoveryListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Register one or more listeners for test discovery.
- registerSyntheticExtension(Extension, Object) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Register the supplied
Extension
as a synthetic extension, without checking if an extension of that type has already been registered. - registerSyntheticExtension(Extension, Object) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- registerTestExecutionListeners(TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Register one or more listeners for test execution.
- release() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
-
Release this resource lock.
- remove(Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Remove the value that was previously stored under the supplied
key
. - remove(Object) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- remove(Object, Class<T>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- remove(Object, Class<V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Remove the value of the specified required type that was previously stored under the supplied
key
. - removeChild(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- removeChild(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove a child from this descriptor.
- removeEldestEntry(Map.Entry<K, V>) - Method in class org.junit.platform.commons.util.LruCache
- removeFromHierarchy() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- removeFromHierarchy() - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove this non-root descriptor from its parent and remove all the children from this descriptor.
- removeFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- removeLastSegment() - Method in class org.junit.platform.engine.UniqueId
- removeListener(LogRecordListener) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Remove the supplied
LogRecordListener
from the set of registered listeners. - RepeatedTest - Annotation Interface in org.junit.jupiter.api
-
@RepeatedTest
is used to signal that the annotated method is a test template method that should be repeated a specified number of times with a configurable display name. - RepetitionInfo - Interface in org.junit.jupiter.api
-
RepetitionInfo
is used to inject information about the current repetition of a repeated test into@RepeatedTest
,@BeforeEach
, and@AfterEach
methods. - replaceIsoControlCharacters(String, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Replace all ISO control characters in the supplied
String
. - ReplaceUnderscores() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- replaceWhitespaceCharacters(String, String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Replace all whitespace characters in the supplied
String
. - reportEntry(Map<String, String>) - Static method in class org.junit.platform.testkit.engine.EventConditions
-
Create a new
Condition
that matches if and only if anEvent
's payload is an instance ofReportEntry
that contains the supplied key-value pairs. - ReportEntry - Class in org.junit.platform.engine.reporting
-
ReportEntry
encapsulates a time-stamped map ofString
-based key-value pairs to be published to the reporting infrastructure. - ReportEntry() - Constructor for class org.junit.platform.engine.reporting.ReportEntry
-
Deprecated.
- REPORTING_ENTRY_PUBLISHED - Enum constant in enum class org.junit.platform.testkit.engine.EventType
-
Signals that a
TestDescriptor
published a reporting entry. - reportingEntryPublished() - Method in class org.junit.platform.testkit.engine.Events
-
Get the reporting entry publication
Events
contained in thisEvents
object. - reportingEntryPublished(long) - Method in class org.junit.platform.testkit.engine.EventStatistics
-
Specify the number of expected reporting entry publication events.
- reportingEntryPublished(TestDescriptor, ReportEntry) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Can be called for any
TestDescriptor
in order to publish additional information to the reporting infrastructure — for example: Output that would otherwise go toSystem.out
Information about test context or test data - reportingEntryPublished(TestDescriptor, ReportEntry) - Static method in class org.junit.platform.testkit.engine.Event
- reportingEntryPublished(TestDescriptor, ReportEntry) - Method in class org.junit.platform.testkit.engine.ExecutionRecorder
-
Record an
Event
for a publishedReportEntry
. - reportingEntryPublished(TestIdentifier, ReportEntry) - Method in class org.junit.platform.jfr.FlightRecordingExecutionListener
- reportingEntryPublished(TestIdentifier, ReportEntry) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when additional test reporting data has been published for the supplied
TestIdentifier
. - reportingEntryPublished(TestIdentifier, ReportEntry) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- reportingEntryPublished(TestIdentifier, ReportEntry) - Method in class org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener
- request() - Static method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Create a new
LauncherDiscoveryRequestBuilder
. - request() - Static method in class org.junit.platform.suite.commons.SuiteLauncherDiscoveryRequestBuilder
- RESERVED_CHARACTERS - Static variable in class org.junit.platform.engine.TestTag
-
Reserved characters that are not permissible as part of a tag name.
- resolve(ClasspathResourceSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClasspathResourceSelector
using the suppliedContext
. - resolve(ClasspathRootSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClasspathRootSelector
using the suppliedContext
. - resolve(ClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClassSelector
using the suppliedContext
. - resolve(DirectorySelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
DirectorySelector
using the suppliedContext
. - resolve(FileSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
FileSelector
using the suppliedContext
. - resolve(IterationSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
IterationSelector
using the suppliedContext
. - resolve(MethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
MethodSelector
using the suppliedContext
. - resolve(ModuleSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ModuleSelector
using the suppliedContext
. - resolve(NestedClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedClassSelector
using the suppliedContext
. - resolve(NestedMethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedMethodSelector
using the suppliedContext
. - resolve(PackageSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
PackageSelector
using the suppliedContext
. - resolve(UniqueIdSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UniqueIdSelector
using the suppliedContext
. - resolve(UriSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UriSelector
using the suppliedContext
. - resolve(DiscoverySelector) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Resolve the supplied
TestDescriptor
, if possible. - resolve(DiscoverySelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
DiscoverySelector
using the suppliedContext
. - resolve(EngineDiscoveryRequest, T) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Resolve the supplied
EngineDiscoveryRequest
and collect the results into the suppliedTestDescriptor
. - resolved() - Static method in class org.junit.platform.engine.SelectorResolutionResult
-
Create a
SelectorResolutionResult
for a resolved selector. - RESOLVED - Enum constant in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Indicates that the
TestEngine
has successfully resolved the selector. - resolveParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Resolve an argument for the
Parameter
in the suppliedParameterContext
for the suppliedExtensionContext
. - resolveParameter(ParameterContext, ExtensionContext) - Method in class org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
- resolveParameters(Executable, Optional<Object>, Optional<Object>, ExtensionContext, ExtensionRegistry) - Static method in class org.junit.jupiter.engine.execution.ParameterResolutionUtils
-
Resolve the array of parameters for the supplied executable, target, and outer instance.
- resolveParameters(Method, Optional<Object>, ExtensionContext, ExtensionRegistry) - Static method in class org.junit.jupiter.engine.execution.ParameterResolutionUtils
-
Resolve the array of parameters for the supplied method and target.
- resolveSelectors(EngineDiscoveryRequest, JupiterEngineDescriptor) - Method in class org.junit.jupiter.engine.discovery.DiscoverySelectorResolver
- ResourceAccessMode - Enum Class in org.junit.jupiter.api.parallel
-
The access mode required by a test class or method for a given resource.
- ResourceLock - Interface in org.junit.platform.engine.support.hierarchical
-
A lock for a one or more resources.
- ResourceLock - Annotation Interface in org.junit.jupiter.api.parallel
-
@ResourceLock
is used to declare that the annotated test class or test method requires access to a shared resource identified by a key. - ResourceLocks - Annotation Interface in org.junit.jupiter.api.parallel
-
@ResourceLocks
is a container for one or more@ResourceLock
declarations. - resources() - Element in annotation interface org.junit.jupiter.params.provider.CsvFileSource
-
The CSV classpath resources to use as the sources of arguments; must not be empty unless
CsvFileSource.files()
is non-empty. - Resources - Class in org.junit.jupiter.api.parallel
-
Common resource names for synchronizing test execution.
- result(Condition<TestExecutionResult>) - Static method in class org.junit.platform.testkit.engine.EventConditions
-
Create a new
Condition
that matches if and only if anEvent
's payload is an instance ofTestExecutionResult
that matches the suppliedCondition
. - rethrowIfBlacklisted(Throwable) - Static method in class org.junit.platform.commons.util.BlacklistedExceptions
-
Deprecated.
- rethrowIfUnrecoverable(Throwable) - Static method in class org.junit.platform.commons.util.UnrecoverableExceptions
-
Rethrow the supplied
exception
if it is unrecoverable. - returnsVoid(Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- root() - Method in enum class org.junit.platform.console.options.Theme
- root(String, String) - Static method in class org.junit.platform.engine.UniqueId
-
Create a root unique ID from the supplied
segmentType
andvalue
using the default format. - run(PrintWriter, PrintWriter, String...) - Method in class org.junit.platform.console.ConsoleLauncherToolProvider
- run(RunNotifier) - Method in class org.junit.platform.runner.JUnitPlatform
-
Deprecated.
- RunnerDecorator - Interface in org.junit.vintage.engine.descriptor
- RunnerExecutor - Class in org.junit.vintage.engine.execution
- RunnerExecutor(EngineExecutionListener) - Constructor for class org.junit.vintage.engine.execution.RunnerExecutor
- RunnerTestDescriptor - Class in org.junit.vintage.engine.descriptor
- RunnerTestDescriptor(UniqueId, Class<?>, Runner) - Constructor for class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- RuntimeUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Runtime
,RuntimeMXBean
, etc.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
ReflectionUtils.tryToReadFieldValue(Class, String, Object)
instead.