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" - Rationale for throwing Throwable instead of Exception - Search tag in interface org.junit.jupiter.api.function.Executable
- Section
- Rationale for throwing Throwable instead of Exception - Search tag in interface org.junit.jupiter.api.function.ThrowingConsumer
- Section
- Rationale for throwing Throwable instead of Exception - Search tag in interface org.junit.jupiter.api.function.ThrowingSupplier
- Section
- 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.
- 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
Throwableinto a String. - reason() - Element in annotation interface org.junit.jupiter.api.parallel.Execution
-
The reason for using the selected execution mode.
- 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
-
ReflectionSupportprovides 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.CycleErrorHandling - Enum Class in org.junit.platform.commons.util
- 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> - Interface in org.junit.jupiter.api.extension
-
ReflectiveInvocationContextencapsulates 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
-
@RegisterExtensionis used to register anExtensionvia a field in a test class. - registerLauncherDiscoveryListeners(LauncherDiscoveryListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Register one or more listeners for test discovery.
- registerListeners(Launcher) - Static method in class org.junit.platform.launcher.jfr.JfrUtils
- registerSyntheticExtension(Extension, Object) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Register the supplied
Extensionas 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.
- registerUninitializedExtension(Class<?>, Field, Function<Object, ? extends Extension>) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Register an uninitialized extension for the supplied
testClassto be initialized using the suppliedinitializerwhen an instance of the test class is created. - registerUninitializedExtension(Class<?>, Field, Function<Object, ? extends Extension>) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- Registration Order - Search tag in annotation interface org.junit.jupiter.api.extension.ExtendWith
- Section
- Registration Order - Search tag in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Section
- 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. - remove(N, Object) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Remove the value stored for the supplied namespace and key from this store.
- remove(N, Object, Class<T>) - Method in class org.junit.platform.engine.support.store.NamespacedHierarchicalStore
-
Remove the value stored for the supplied namespace and key from this store and cast it to the supplied required type.
- removeChild(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- removeChild(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove a child from this descriptor.
- 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
LogRecordListenerfrom the set of registered listeners. - RepeatedTest - Annotation Interface in org.junit.jupiter.api
-
@RepeatedTestis 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 and an optional failure threshold. - RepetitionInfo - Interface in org.junit.jupiter.api
-
RepetitionInfois used to inject information about the current repetition of a repeated test into@RepeatedTest,@BeforeEach, and@AfterEachmethods. - 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. - reportAndClear(List<DiscoveryIssue>, DiscoveryIssueReporter) - Static method in interface org.junit.jupiter.engine.descriptor.Validatable
-
Report and clear the given list of
DiscoveryIssues using the suppliedDiscoveryIssueReporter. - reportEntry(Map<String, String>) - Static method in class org.junit.platform.testkit.engine.EventConditions
-
Create a new
Conditionthat matches if and only if anEvent's payload is an instance ofReportEntrythat contains the supplied key-value pairs. - ReportEntry - Class in org.junit.platform.engine.reporting
-
ReportEntryencapsulates a time-stamped map ofString-based key-value pairs to be published to the reporting infrastructure. - REPORTING_ENTRY_PUBLISHED - Enum constant in enum class org.junit.platform.testkit.engine.EventType
-
Signals that a
TestDescriptorpublished a reporting entry. - reportingEntryPublished() - Method in class org.junit.platform.testkit.engine.Events
-
Get the reporting entry publication
Eventscontained in thisEventsobject. - 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
TestDescriptorin order to publish additional information to the reporting infrastructure — for example: Output that would otherwise go toSystem.outInformation 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
Eventfor a publishedReportEntry. - 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
- reportIssue(DiscoveryIssue) - Method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter
-
Report the supplied
DiscoveryIssue. - reportIssue(DiscoveryIssue.Builder) - Method in interface org.junit.platform.engine.support.discovery.DiscoveryIssueReporter
-
Build the supplied
Builderand report the resultingDiscoveryIssue. - request() - Static method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Create a new
LauncherDiscoveryRequestBuilder. - request(LauncherDiscoveryRequest) - Static method in class org.junit.platform.launcher.core.LauncherExecutionRequestBuilder
-
Create a new
LauncherExecutionRequestBuilderfrom the suppliedLauncherDiscoveryRequest. - request(TestPlan) - Static method in class org.junit.platform.launcher.core.LauncherExecutionRequestBuilder
-
Create a new
LauncherExecutionRequestBuilderfrom the suppliedTestPlan. - Requirements for IDEs and Tooling Vendors - Search tag in annotation interface org.junit.platform.commons.annotation.Testable
- Section
- 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
ClasspathResourceSelectorusing the suppliedContext. - resolve(ClasspathRootSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClasspathRootSelectorusing the suppliedContext. - resolve(ClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ClassSelectorusing the suppliedContext. - resolve(DirectorySelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
DirectorySelectorusing the suppliedContext. - resolve(FileSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
FileSelectorusing the suppliedContext. - resolve(IterationSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
IterationSelectorusing the suppliedContext. - resolve(MethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
MethodSelectorusing the suppliedContext. - resolve(ModuleSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
ModuleSelectorusing the suppliedContext. - resolve(NestedClassSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedClassSelectorusing the suppliedContext. - resolve(NestedMethodSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
NestedMethodSelectorusing the suppliedContext. - resolve(PackageSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
PackageSelectorusing the suppliedContext. - resolve(UniqueIdSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UniqueIdSelectorusing the suppliedContext. - resolve(UriSelector, SelectorResolver.Context) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver
-
Resolve the supplied
UriSelectorusing 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
DiscoverySelectorusing the suppliedContext. - resolve(EngineDiscoveryRequest, T) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Resolve the supplied
EngineDiscoveryRequestand collect the results into the suppliedTestDescriptorwhile forwarding encountered discovery issues to theEngineDiscoveryRequest'sEngineDiscoveryListener. - resolve(EngineDiscoveryRequest, T, DiscoveryIssueReporter) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Resolve the supplied
EngineDiscoveryRequestand collect the results into the suppliedTestDescriptorusing the suppliedDiscoveryIssueReporterto report issues encountered during resolution. - resolved() - Static method in class org.junit.platform.engine.SelectorResolutionResult
-
Create a
SelectorResolutionResultfor a resolved selector. - RESOLVED - Enum constant in enum class org.junit.platform.engine.SelectorResolutionResult.Status
-
Indicates that the
TestEnginehas successfully resolved the selector. - resolveParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Resolve an argument for the
Parameterin the suppliedParameterContextfor 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(Executable, Optional<Object>, Optional<Object>, ExtensionContextSupplier, ExtensionRegistry) - Static method in class org.junit.jupiter.engine.execution.ParameterResolutionUtils
- 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.
- resolveParameterTypes(Class<?>, String, String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- resolveSelectors(EngineDiscoveryRequest, JupiterEngineDescriptor, DiscoveryIssueReporter) - Static method in class org.junit.jupiter.engine.discovery.DiscoverySelectorResolver
- Resource - Interface in org.junit.platform.commons.support
-
Resourcerepresents a resource on the classpath. - 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
-
@ResourceLockis 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
-
@ResourceLocksis a container for one or more@ResourceLockdeclarations. - ResourceLocksProvider - Interface in org.junit.jupiter.api.parallel
-
A
ResourceLocksProvideris used to programmatically add shared resources to a test class or its test methods dynamically at runtime. - ResourceLocksProvider.Lock - Class in org.junit.jupiter.api.parallel
-
Lockrepresents a shared resource. - ResourceLockTarget - Enum Class in org.junit.jupiter.api.parallel
-
ResourceLockTargetis used to define the target of a shared resource. - 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.
- ResourceUtils - Class in org.junit.platform.commons.util
-
Collection of static utility methods for working with resources.
- Restrictions for TestEngine Implementations - Search tag in annotation interface org.junit.platform.commons.annotation.Testable
- Section
- result(Condition<TestExecutionResult>) - Static method in class org.junit.platform.testkit.engine.EventConditions
-
Create a new
Conditionthat matches if and only if anEvent's payload is an instance ofTestExecutionResultthat matches the suppliedCondition. - rethrowIfUnrecoverable(Throwable) - Static method in class org.junit.platform.commons.util.UnrecoverableExceptions
-
Rethrow the supplied
exceptionif it is unrecoverable. - returnsPrimitiveVoid(Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the return type of the supplied method is primitive
void. - 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
segmentTypeandvalueusing the default format. - rootCause(Condition<Throwable>...) - Static method in class org.junit.platform.testkit.engine.TestExecutionResultConditions
- run(PrintWriter, PrintWriter, String...) - Static method in class org.junit.platform.console.ConsoleLauncher
- run(PrintWriter, PrintWriter, String...) - Method in class org.junit.platform.console.ConsoleLauncherToolProvider
- run(String[]) - Method in class org.junit.platform.console.options.CommandFacade
- run(String[], PrintWriter, PrintWriter) - Method in class org.junit.platform.console.options.CommandFacade
- RunnerDecorator - Interface in org.junit.vintage.engine.descriptor
- RunnerExecutor - Class in org.junit.vintage.engine.execution
- RunnerExecutor(EngineExecutionListener, CancellationToken) - Constructor for class org.junit.vintage.engine.execution.RunnerExecutor
- RunnerTestDescriptor - Class in org.junit.vintage.engine.descriptor
- RunnerTestDescriptor(UniqueId, Class<?>, Runner, boolean) - 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