A B C D E F G H I J L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- aborted() - Method in enum org.junit.platform.console.options.Theme
- aborted(Throwable) - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for an aborted execution of a test or container with the suppliedthrowable
. - ABORTED - org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container was aborted (started but not finished).
- AbstractTestDescriptor - Class in org.junit.platform.engine.support.descriptor
-
Abstract base implementation of
TestDescriptor
that may be used by customTestEngines
. - AbstractTestDescriptor(UniqueId, String) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the suppliedUniqueId
and display name. - AbstractTestDescriptor(UniqueId, String, TestSource) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the suppliedUniqueId
, display name, and source. - AbstractTestRuleAdapter - Class in org.junit.jupiter.migrationsupport.rules.adapter
- AbstractTestRuleAdapter(TestRuleAnnotatedMember, Class<? extends TestRule>) - Constructor for class org.junit.jupiter.migrationsupport.rules.adapter.AbstractTestRuleAdapter
- accept(TestDescriptor.Visitor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Accept a
TestDescriptor.Visitor
to the subtree starting with this descriptor. - accept(T) - Method in interface org.junit.jupiter.api.function.ThrowingConsumer
-
Consume the supplied argument, potentially throwing an exception.
- acquire() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
-
Acquire this resource lock, potentially blocking.
- adaptFilter(Filter<V>, Function<T, V>) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if the adapted
Filter
includes the value converted using the suppliedFunction
. - add(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Deprecated.without replacement since this method was intended to be internal.
- addChild(TestDescriptor) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- addChild(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Add a child to this descriptor.
- addClassContainerSelectorResolver(Predicate<Class<?>>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a predefined resolver that resolves
ClasspathRootSelectors
,ModuleSelectors
, andPackageSelectors
intoClassSelectors
by scanning for classes that satisfy the supplied predicate in the respective class containers to this builder. - addListener(LogRecordListener) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Add the supplied
LogRecordListener
to the set of registered listeners. - addSelectorResolver(Function<EngineDiscoveryRequestResolver.InitializationContext<T>, SelectorResolver>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context sensitive
SelectorResolver
to this builder. - addSelectorResolver(SelectorResolver) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context insensitive
SelectorResolver
to this builder. - addTestDescriptorVisitor(Function<EngineDiscoveryRequestResolver.InitializationContext<T>, TestDescriptor.Visitor>) - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Add a context sensitive
TestDescriptor.Visitor
to this builder. - addTestEngines(TestEngine...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied
engines
to the configuration. - addTestExecutionListeners(TestExecutionListener...) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Add all of the supplied
listeners
to the configuration. - addToParent(Function<TestDescriptor, Optional<T>>) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Add a
TestDescriptor
to an unspecified parent, usually the engine descriptor, by applying the suppliedFunction
to the new parent. - addToParent(Supplier<DiscoverySelector>, Function<TestDescriptor, Optional<T>>) - Method in interface org.junit.platform.engine.support.discovery.SelectorResolver.Context
-
Add a
TestDescriptor
to a parent, specified by theDiscoverySelector
returned by the suppliedSupplier
, by applying the suppliedFunction
to the new parent. - after() - Method in class org.junit.jupiter.migrationsupport.rules.adapter.ExpectedExceptionAdapter
- after() - Method in class org.junit.jupiter.migrationsupport.rules.adapter.ExternalResourceAdapter
- after() - Method in interface org.junit.jupiter.migrationsupport.rules.adapter.GenericBeforeAndAfterAdvice
- after() - Method in class org.junit.jupiter.migrationsupport.rules.adapter.VerifierAdapter
- after(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the after behavior of this node.
- after(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- after(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- afterAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterAllCallback
-
Callback that is invoked once after all tests in the current container.
- AfterAll - Annotation Type in org.junit.jupiter.api
-
@AfterAll
is used to signal that the annotated method should be executed after all tests in the current test class. - AfterAllCallback - Interface in org.junit.jupiter.api.extension
-
AfterAllCallback
defines the API forExtensions
that wish to provide additional behavior to test containers after all tests have been invoked. - afterEach(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterEachCallback
-
Callback that is invoked after each test has been invoked.
- afterEach(ExtensionContext) - Method in class org.junit.jupiter.migrationsupport.rules.ExpectedExceptionSupport
- afterEach(ExtensionContext) - Method in class org.junit.jupiter.migrationsupport.rules.ExternalResourceSupport
- afterEach(ExtensionContext) - Method in class org.junit.jupiter.migrationsupport.rules.VerifierSupport
- AfterEach - Annotation Type in org.junit.jupiter.api
-
@AfterEach
is used to signal that the annotated method should be executed after each@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
, and@TestTemplate
method in the current test class. - AfterEachCallback - Interface in org.junit.jupiter.api.extension
-
AfterEachCallback
defines the API forExtensions
that wish to provide additional behavior to tests after each test method has been invoked. - AfterEachMethodAdapter - Interface in org.junit.jupiter.engine.execution
-
Functional interface for registering an
@AfterEach
method as a pseudo-extension. - afterTestExecution(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
-
Callback that is invoked immediately after each test has been executed.
- AfterTestExecutionCallback - Interface in org.junit.jupiter.api.extension
-
AfterTestExecutionCallback
defines the API forExtensions
that wish to provide additional behavior to tests immediately after each test has been executed. - aggregateArguments(ArgumentsAccessor, ParameterContext) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAggregator
-
Aggregate the arguments contained in the supplied
accessor
into a single object. - AggregateWith - Annotation Type in org.junit.jupiter.params.aggregator
-
@AggregateWith
is an annotation that allows one to specify anArgumentsAggregator
. - AIX - org.junit.jupiter.api.condition.OS
-
IBM AIX operating system.
- allow(UniqueId) - Method in class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- allowAll() - Method in class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- Alphanumeric() - Constructor for class org.junit.jupiter.api.MethodOrderer.Alphanumeric
- andThen(Function<V, Try<U>>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a success, apply the supplied function to its value and return the resultingTry
; if thisTry
is a failure, do nothing. - andThenTry(Try.Transformer<V, U>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a success, apply the supplied transformer to its value and return a new successful or failedTry
depending on the transformer's outcome; if thisTry
is a failure, do nothing. - AnnotationConsumer<A extends Annotation> - Interface in org.junit.jupiter.params.support
-
AnnotationConsumer
is a functional interface for consuming annotations. - AnnotationConsumerInitializer - Class in org.junit.jupiter.params.support
-
AnnotationConsumerInitializer
is an internal helper class for initializingAnnotationConsumers
. - AnnotationSupport - Class in org.junit.platform.commons.support
-
AnnotationSupport
provides static utility methods for common tasks regarding annotations — for example, checking if a class, method, or field is annotated with a particular annotation; finding annotations on a given class, method, or field; finding fields or methods annotated with a particular annotation, etc. - AnnotationUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with annotations.
- append(String, Object) - Method in class org.junit.platform.commons.util.ToStringBuilder
- append(String, String) - Method in class org.junit.platform.engine.UniqueId
-
Construct a new
UniqueId
by appending a newUniqueId.Segment
, based on the suppliedsegmentType
andvalue
, to the end of thisUniqueId
. - append(UniqueId.Segment) - Method in class org.junit.platform.engine.UniqueId
- apply(Serializable) - Method in class org.junit.vintage.engine.support.UniqueIdStringifier
- apply(InvocationInterceptor, InvocationInterceptor.Invocation<Void>) - Method in interface org.junit.jupiter.engine.execution.InvocationInterceptorChain.VoidInterceptorCall
- apply(InvocationInterceptor, InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.engine.execution.ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall
- apply(InvocationInterceptor, InvocationInterceptor.Invocation<T>) - Method in interface org.junit.jupiter.engine.execution.InvocationInterceptorChain.InterceptorCall
- apply(InvocationInterceptor, InvocationInterceptor.Invocation<T>, ReflectiveInvocationContext<E>, ExtensionContext) - Method in interface org.junit.jupiter.engine.execution.ExecutableInvoker.ReflectiveInterceptorCall
- apply(TestEngine) - Method in class org.junit.platform.launcher.EngineFilter
- apply(Description) - Method in class org.junit.vintage.engine.support.UniqueIdReader
- apply(S) - Method in interface org.junit.platform.commons.function.Try.Transformer
-
Apply this transformer to the supplied value.
- apply(T) - Method in interface org.junit.platform.engine.Filter
-
Apply this filter to the supplied object.
- applyFilters(Consumer<RunnerTestDescriptor>) - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- ArgumentAccessException - Exception in org.junit.jupiter.params.aggregator
-
ArgumentAccessException
is an exception thrown by anArgumentsAccessor
if an error occurs while accessing or converting an argument. - ArgumentAccessException(String) - Constructor for exception org.junit.jupiter.params.aggregator.ArgumentAccessException
- ArgumentAccessException(String, Throwable) - Constructor for exception org.junit.jupiter.params.aggregator.ArgumentAccessException
- ArgumentConversionException - Exception in org.junit.jupiter.params.converter
-
ArgumentConversionException
is an exception that can occur when an object is converted to another object by an implementation of anArgumentConverter
. - ArgumentConversionException(String) - Constructor for exception org.junit.jupiter.params.converter.ArgumentConversionException
- ArgumentConversionException(String, Throwable) - Constructor for exception org.junit.jupiter.params.converter.ArgumentConversionException
- ArgumentConverter - Interface in org.junit.jupiter.params.converter
-
ArgumentConverter
is an abstraction that allows an input object to be converted to an instance of a different class. - arguments(Object...) - Static method in interface org.junit.jupiter.params.provider.Arguments
-
Factory method for creating an instance of
Arguments
based on the suppliedarguments
. - Arguments - Interface in org.junit.jupiter.params.provider
-
Arguments
is an abstraction that provides access to an array of objects to be used for invoking a@ParameterizedTest
method. - ARGUMENTS_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.params.ParameterizedTest
-
Placeholder for the complete, comma-separated arguments list of the current invocation of a
@ParameterizedTest
method:{arguments}
- ArgumentsAccessor - Interface in org.junit.jupiter.params.aggregator
-
ArgumentsAccessor
defines the public API for accessing arguments provided by anArgumentsProvider
for a single invocation of a@ParameterizedTest
method. - ArgumentsAggregationException - Exception in org.junit.jupiter.params.aggregator
-
ArgumentsAggregationException
is an exception thrown by anArgumentsAggregator
when an error occurs while aggregating arguments. - ArgumentsAggregationException(String) - Constructor for exception org.junit.jupiter.params.aggregator.ArgumentsAggregationException
- ArgumentsAggregationException(String, Throwable) - Constructor for exception org.junit.jupiter.params.aggregator.ArgumentsAggregationException
- ArgumentsAggregator - Interface in org.junit.jupiter.params.aggregator
-
ArgumentsAggregator
is an abstraction for the aggregation of arguments provided by anArgumentsProvider
for a single invocation of a@ParameterizedTest
method into a single object. - ArgumentsProvider - Interface in org.junit.jupiter.params.provider
-
An
ArgumentsProvider
is responsible for providing a stream of arguments to be passed to a@ParameterizedTest
method. - ArgumentsSource - Annotation Type in org.junit.jupiter.params.provider
-
@ArgumentsSource
is a repeatable annotation that is used to register argument providers for the annotated test method. - ArgumentsSources - Annotation Type in org.junit.jupiter.params.provider
-
@ArgumentsSources
is a simple container for one or moreArgumentsSource
annotations. - around(C, Node.Invocation<C>) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Wraps around the invocation of
Node.before(EngineExecutionContext)
,Node.execute(EngineExecutionContext, DynamicTestExecutor)
, andNode.after(EngineExecutionContext)
. - ASCII - org.junit.platform.console.options.Theme
-
ASCII 7-bit characters form the tree branch.
- assertAll(String, Collection<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertAll(String, Stream<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertAll(String, Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertAll(Collection<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertAll(Stream<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertAll(Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executables
do not throw exceptions. - assertArrayEquals(boolean[], boolean[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
boolean arrays are equal. - assertArrayEquals(boolean[], boolean[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
boolean arrays are equal. - assertArrayEquals(boolean[], boolean[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
boolean arrays are equal. - assertArrayEquals(byte[], byte[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
byte arrays are equal. - assertArrayEquals(byte[], byte[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
byte arrays are equal. - assertArrayEquals(byte[], byte[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
byte arrays are equal. - assertArrayEquals(char[], char[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
char arrays are equal. - assertArrayEquals(char[], char[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
char arrays are equal. - assertArrayEquals(char[], char[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
char arrays are equal. - assertArrayEquals(double[], double[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal. - assertArrayEquals(double[], double[], double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal within the given non-negativedelta
. - assertArrayEquals(double[], double[], double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal within the given non-negativedelta
. - assertArrayEquals(double[], double[], double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal within the given non-negativedelta
. - assertArrayEquals(double[], double[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal. - assertArrayEquals(double[], double[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
double arrays are equal. - assertArrayEquals(float[], float[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal. - assertArrayEquals(float[], float[], float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal within the given non-negativedelta
. - assertArrayEquals(float[], float[], float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal within the given non-negativedelta
. - assertArrayEquals(float[], float[], float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal within the given non-negativedelta
. - assertArrayEquals(float[], float[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal. - assertArrayEquals(float[], float[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
float arrays are equal. - assertArrayEquals(int[], int[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
int arrays are equal. - assertArrayEquals(int[], int[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
int arrays are equal. - assertArrayEquals(int[], int[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
int arrays are equal. - assertArrayEquals(long[], long[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
long arrays are equal. - assertArrayEquals(long[], long[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
long arrays are equal. - assertArrayEquals(long[], long[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
long arrays are equal. - assertArrayEquals(short[], short[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
short arrays are equal. - assertArrayEquals(short[], short[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
short arrays are equal. - assertArrayEquals(short[], short[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
short arrays are equal. - assertArrayEquals(Object[], Object[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
object arrays are deeply equal. - assertArrayEquals(Object[], Object[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
object arrays are deeply equal. - assertArrayEquals(Object[], Object[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
object arrays are deeply equal. - assertDoesNotThrow(Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
does not throw any kind of exception. - assertDoesNotThrow(Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
does not throw any kind of exception. - assertDoesNotThrow(Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
does not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier<T>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
does not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier<T>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
does not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier<T>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
does not throw any kind of exception. - assertEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Assert that this
ThrowableCollector
is empty (i.e., has not collected anyThrowables
). - assertEquals(byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(byte, byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(byte, Byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, char, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(char, Character, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(double, double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(double, double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(double, Double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(float, float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(float, float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal within the given non-negativedelta
. - assertEquals(float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(float, Float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, int, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(int, Integer, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(long, Long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(short, Short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Byte, Byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, char, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Character, Character, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Double, Double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Float, Float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, int, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Integer, Integer, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Long, Long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertEquals(Short, Short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are equal. - assertFalse(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
isfalse
. - assertFalse(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
isfalse
. - assertFalse(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
isfalse
. - assertFalse(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
isfalse
. - assertFalse(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
isfalse
. - assertFalse(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
isfalse
. - Assertions - Class in org.junit.jupiter.api
-
Assertions
is a collection of utility methods that support asserting conditions in tests. - Assertions() - Constructor for class org.junit.jupiter.api.Assertions
-
Protected constructor allowing subclassing but not direct instantiation.
- assertIterableEquals(Iterable<?>, Iterable<?>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
iterables are deeply equal. - assertIterableEquals(Iterable<?>, Iterable<?>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
iterables are deeply equal. - assertIterableEquals(Iterable<?>, Iterable<?>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
iterables are deeply equal. - assertLinesMatch(List<String>, List<String>) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(List<String>, List<String>, String) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(List<String>, List<String>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
- assertNotEquals(byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(byte, byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(byte, Byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, char, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(char, Character, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(double, double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(double, double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(double, Double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(float, float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(float, float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal within the givendelta
. - assertNotEquals(float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(float, Float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, int, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(int, Integer, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(long, Long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(short, Short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Byte, Byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, char, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Character, Character, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Double, Double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Float, Float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, int, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Integer, Integer, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Long, Long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotEquals(Short, Short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
are not equal. - assertNotNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
is notnull
. - assertNotNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
is notnull
. - assertNotNull(Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
is notnull
. - assertNotSame(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
do not refer to the same object. - assertNotSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
do not refer to the same object. - assertNotSame(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
do not refer to the same object. - assertNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
isnull
. - assertNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
isnull
. - assertNull(Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actual
isnull
. - assertPackageNameIsValid(String) - Static method in class org.junit.platform.commons.util.PackageUtils
-
Assert that the supplied package name is valid in terms of Java syntax.
- assertSame(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
refer to the same object. - assertSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
refer to the same object. - assertSame(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expected
andactual
refer to the same object. - assertThrows(Class<T>, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
throws an exception of theexpectedType
and returns the exception. - assertThrows(Class<T>, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
throws an exception of theexpectedType
and returns the exception. - assertThrows(Class<T>, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
throws an exception of theexpectedType
and returns the exception. - assertTimeout(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeout(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeout(Duration, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeout(Duration, ThrowingSupplier<T>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTimeout(Duration, ThrowingSupplier<T>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTimeout(Duration, ThrowingSupplier<T>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executable
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier<T>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplier
completes before the giventimeout
is exceeded. - assertTrue(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
istrue
. - assertTrue(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
istrue
. - assertTrue(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
condition
istrue
. - assertTrue(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
istrue
. - assertTrue(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
istrue
. - assertTrue(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplier
istrue
. - assumeFalse(boolean) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(boolean, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumingThat(boolean, Executable) - Static method in class org.junit.jupiter.api.Assumptions
-
Execute the supplied
Executable
, but only if the supplied assumption is valid. - assumingThat(BooleanSupplier, Executable) - Static method in class org.junit.jupiter.api.Assumptions
-
Execute the supplied
Executable
, but only if the supplied assumption is valid. - Assumptions - Class in org.junit.jupiter.api
-
Assumptions
is a collection of utility methods that support conditional test execution based on assumptions. - Assumptions() - Constructor for class org.junit.jupiter.api.Assumptions
-
Protected constructor allowing subclassing but not direct instantiation.
- awaitFinished() - Method in interface org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor
-
Block until all dynamic test descriptors submitted to this executor are finished.
B
- before() - Method in class org.junit.jupiter.migrationsupport.rules.adapter.ExternalResourceAdapter
- before() - Method in interface org.junit.jupiter.migrationsupport.rules.adapter.GenericBeforeAndAfterAdvice
- before(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the before behavior of this node.
- before(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- beforeAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeAllCallback
-
Callback that is invoked once before all tests in the current container.
- BeforeAll - Annotation Type in org.junit.jupiter.api
-
@BeforeAll
is used to signal that the annotated method should be executed before all tests in the current test class. - BeforeAllCallback - Interface in org.junit.jupiter.api.extension
-
BeforeAllCallback
defines the API forExtensions
that wish to provide additional behavior to test containers before all tests are invoked. - beforeAllCallbacksExecuted() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- beforeAllCallbacksExecuted(boolean) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
-
Track that an attempt was made to execute
BeforeAllCallback
extensions. - beforeAllMethodsExecuted() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- beforeAllMethodsExecuted(boolean) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
-
Track that an attempt was made to execute
@BeforeAll
methods. - beforeEach(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeEachCallback
-
Callback that is invoked before each test is invoked.
- beforeEach(ExtensionContext) - Method in class org.junit.jupiter.migrationsupport.rules.ExternalResourceSupport
- BeforeEach - Annotation Type in org.junit.jupiter.api
-
@BeforeEach
is used to signal that the annotated method should be executed before each@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
, and@TestTemplate
method in the current test class. - BeforeEachCallback - Interface in org.junit.jupiter.api.extension
-
BeforeEachCallback
defines the API forExtensions
that wish to provide additional behavior to tests before each test is invoked. - BeforeEachMethodAdapter - Interface in org.junit.jupiter.engine.execution
-
Functional interface for registering a
@BeforeEach
method as a pseudo-extension. - beforeTestExecution(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
-
Callback that is invoked immediately before each test is executed.
- BeforeTestExecutionCallback - Interface in org.junit.jupiter.api.extension
-
BeforeTestExecutionCallback
defines the API forExtensions
that wish to provide additional behavior to tests immediately before each test is executed. - BIND_JUNIT_CONFIGURATION_PARAMETER - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.Accessor for JUnit Platform configuration parameters.
- BIND_JUNIT_DISPLAY_NAME - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.Display name of the test or container.
- BIND_JUNIT_TAGS - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.Set of all tags assigned to the current extension context.
- BIND_JUNIT_UNIQUE_ID - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.Unique ID associated with the current extension context.
- BlacklistedExceptions - Class in org.junit.platform.commons.util
-
Internal utilities for working with blacklisted exceptions.
- blank() - Method in enum org.junit.platform.console.options.Theme
- booleans() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
boolean
values to use as sources of arguments; must not be empty. - BOTTOM_UP - org.junit.platform.commons.support.HierarchyTraversalMode
-
Traverse the hierarchy using bottom-up semantics.
- BOTTOM_UP - org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Traverse the hierarchy using bottom-up semantics.
- build() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder
- build() - Method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.Builder
-
Build the
EngineDiscoveryRequestResolver
that has been configured via this builder. - build() - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Build the
LauncherConfig
that has been configured via this builder. - build() - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Build the
LauncherDiscoveryRequest
that has been configured via this builder. - buildClassFilter(EngineDiscoveryRequest, Predicate<Class<?>>) - Static method in class org.junit.platform.engine.support.filter.ClasspathScanningSupport
-
Deprecated.Please use
EngineDiscoveryRequestResolver
- buildClassNamePredicate(EngineDiscoveryRequest) - Static method in class org.junit.platform.engine.support.filter.ClasspathScanningSupport
-
Deprecated.Please use
EngineDiscoveryRequestResolver
- builder() - Static method in class org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver
-
Create a new
EngineDiscoveryRequestResolver.Builder
for creating aEngineDiscoveryRequestResolver
. - builder() - Static method in interface org.junit.platform.launcher.core.LauncherConfig
-
Create a new
LauncherConfig.Builder
. - bytes() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
byte
values to use as sources of arguments; must not be empty.
C
- CachingJupiterConfiguration - Class in org.junit.jupiter.engine.config
-
Caching implementation of the
JupiterConfiguration
API. - CachingJupiterConfiguration(JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- call(Callable<V>) - Static method in class org.junit.platform.commons.function.Try
-
Call the supplied
Callable
and return a successfulTry
that contains the returned value or, in case an exception was thrown, a failedTry
that contains the exception. - canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- canBeRemovedFromHierarchy() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- CAPTURE_MAX_BUFFER_DEFAULT - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Default maximum number of bytes for buffering to use per thread and output type if output capturing is enabled.
- CAPTURE_MAX_BUFFER_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to configure the maximum number of bytes for buffering to use per thread and output type if output capturing is enabled: "junit.platform.output.capture.maxBuffer"
- CAPTURE_STDERR_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.err
: "junit.platform.output.capture.stderr" - CAPTURE_STDOUT_PROPERTY_NAME - Static variable in class org.junit.platform.launcher.LauncherConstants
-
Property name used to enable capturing output to
System.out
: "junit.platform.output.capture.stdout" - chars() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
char
values to use as sources of arguments; must not be empty. - children - Variable in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
The synchronized set of children associated with this
TestDescriptor
. - ClassBasedTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for tests based on Java classes. - classes() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
Class
values to use as sources of arguments; must not be empty. - ClassFilter - Class in org.junit.platform.commons.util
-
Class-related predicate holder used by reflection utilities.
- ClassLoaderUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with ClassLoader and associated tasks.
- ClassNameFilter - Interface in org.junit.platform.engine.discovery
-
DiscoveryFilter
that is applied to the name of aClass
. - CLASSPATH_SCHEME - Static variable in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- ClasspathResourceSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects the name of a classpath resource so thatTestEngines
can load resources from the classpath — for example, to load XML or JSON files from the classpath, potentially within JARs. - ClasspathResourceSource - Class in org.junit.platform.engine.support.descriptor
-
Classpath resource based
TestSource
with an optional position. - ClasspathRootSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a classpath root so thatTestEngines
can search for class files or resources within the physical classpath — for example, to scan for test classes. - ClasspathScanningSupport - Class in org.junit.platform.engine.support.filter
-
Deprecated.Please use
EngineDiscoveryRequestResolver
- ClassSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aClass
or class name so thatTestEngines
can discover tests or containers based on classes. - ClassSource - Class in org.junit.platform.engine.support.descriptor
-
Class based
TestSource
with an optional file position. - ClassSupport - Class in org.junit.platform.commons.support
-
ClassSupport
provides static utility methods for common tasks regarding classes — for example, generating a comma-separated list of fully qualified class names for a set of supplied classes. - ClassTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for tests based on Java classes. - ClassTestDescriptor(UniqueId, Class<?>, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- ClassUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
classes
. - cleanUp(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Clean up the supplied
context
after execution. - cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- cleanUp(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
- clear() - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Clear all existing
log records
that have been submitted to this listener by the current thread. - clearFilters() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- clone() - Method in class org.junit.platform.engine.UniqueId
- close() - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
-
Close underlying resources.
- close() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- close() - Method in class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
- close() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService
-
Close this service and let it perform any required cleanup work.
- close() - Method in interface org.junit.platform.engine.support.hierarchical.ResourceLock
- close() - Method in class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- closeAllStoredCloseableValues() - Method in class org.junit.jupiter.engine.execution.ExtensionValuesStore
-
Close all values that implement
ExtensionContext.Store.CloseableResource
. - CollectionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Collections
. - CommandLineOptions - Class in org.junit.platform.console.options
- CommandLineOptions() - Constructor for class org.junit.platform.console.options.CommandLineOptions
- CommandLineOptionsParser - Interface in org.junit.platform.console.options
- composeFilters(Collection<? extends Filter<T>>) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if all of the filters in the supplied collection of
filters
include it. - composeFilters(Filter<T>...) - Static method in interface org.junit.platform.engine.Filter
-
Return a filter that will include elements if and only if all of the filters in the supplied array of
filters
include it. - CompositeTestSource - Class in org.junit.platform.engine.support.descriptor
-
A
CompositeTestSource
contains one or moreTestSources
. - computeExitCode(TestExecutionSummary, CommandLineOptions) - Static method in class org.junit.platform.console.ConsoleLauncherExecutionResult
- CONCURRENT - org.junit.jupiter.api.parallel.ExecutionMode
-
Allow concurrent execution with any other node.
- CONCURRENT - org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Allow concurrent execution with any other node.
- condition(boolean, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicate
istrue
. - condition(boolean, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
predicate
istrue
. - ConditionEvaluationResult - Class in org.junit.jupiter.api.extension
-
The result of evaluating an ExecutionCondition.
- ConditionEvaluator - Class in org.junit.jupiter.engine.execution
-
ConditionEvaluator
evaluatesExecutionCondition
extensions. - ConditionEvaluator() - Constructor for class org.junit.jupiter.engine.execution.ConditionEvaluator
- config(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at config level. - config(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at config level. - CONFIG_CUSTOM_CLASS_PROPERTY_NAME - Static variable in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to specify the fully qualified class name of the
ParallelExecutionConfigurationStrategy
to be used by theDefaultParallelExecutionConfigurationStrategy.CUSTOM
configuration strategy. - CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME - Static variable in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name of the factor used to determine the desired parallelism for the
DefaultParallelExecutionConfigurationStrategy.DYNAMIC
configuration strategy. - CONFIG_FILE_NAME - Static variable in interface org.junit.platform.engine.ConfigurationParameters
-
Name of the JUnit Platform configuration file: "junit-platform.properties".
- CONFIG_FIXED_PARALLELISM_PROPERTY_NAME - Static variable in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to determine the desired parallelism for the
DefaultParallelExecutionConfigurationStrategy.FIXED
configuration strategy. - CONFIG_STRATEGY_PROPERTY_NAME - Static variable in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Property name used to determine the desired configuration strategy.
- configurationParameter(String, String) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add the supplied configuration parameter to the request.
- ConfigurationParameterAccessor(ExtensionContext) - Constructor for class org.junit.jupiter.engine.script.ScriptAccessor.ConfigurationParameterAccessor
-
Deprecated.
- configurationParameters(Map<String, String>) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied configuration parameters to the request.
- ConfigurationParameters - Interface in org.junit.platform.engine
-
Configuration parameters that
TestEngines
may use to influence test discovery and execution. - ConsoleLauncher - Class in org.junit.platform.console
-
The
ConsoleLauncher
is a stand-alone application for launching the JUnit Platform from the console. - ConsoleLauncherExecutionResult - Class in org.junit.platform.console
- ConsoleTestExecutor - Class in org.junit.platform.console.tasks
- ConsoleTestExecutor(CommandLineOptions) - Constructor for class org.junit.platform.console.tasks.ConsoleTestExecutor
- Constants - Class in org.junit.jupiter.engine
-
Collection of constants related to the
JupiterTestEngine
. - CONTAINER - org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a container. - CONTAINER_AND_TEST - org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a test that may potentially also be a container. - containsIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
contains any ISO control characters. - containsNoNullElements(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
null
elements. - containsNoNullElements(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array contains no
null
elements. - containsNoNullElements(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
null
elements. - containsNoNullElements(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied collection contains no
null
elements. - containsTests() - Method in class org.junit.platform.launcher.TestPlan
-
Return whether this test plan contains any tests.
- containsTests(TestDescriptor) - Static method in interface org.junit.platform.engine.TestDescriptor
-
Determine if the supplied descriptor (or any of its descendants) is a test or may potentially register tests dynamically.
- containsWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
contains any whitespace characters. - convert(Object, Class<?>) - Method in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- convert(Object, Class<?>) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
-
Convert the supplied
source
object into to the suppliedtargetType
. - convert(Object, ParameterContext) - Method in interface org.junit.jupiter.params.converter.ArgumentConverter
-
Convert the supplied
source
object according to the suppliedcontext
. - convert(Object, ParameterContext) - Method in class org.junit.jupiter.params.converter.SimpleArgumentConverter
- ConvertWith - Annotation Type in org.junit.jupiter.params.converter
-
@ConvertWith
is an annotation that allows one to specify an explicitArgumentConverter
. - countTestIdentifiers(Predicate<? super TestIdentifier>) - Method in class org.junit.platform.launcher.TestPlan
-
Count all
TestIdentifiers
that satisfy the given predicate. - create() - Method in interface org.junit.platform.engine.support.hierarchical.ThrowableCollector.Factory
-
Create a new instance of a
ThrowableCollector
. - create() - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for creating a new
Launcher
using automatic registration for test engines and test execution listeners. - create(Object...) - Static method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
-
Create a namespace which restricts access to data to all extensions which use the same sequence of
parts
for creating a namespace. - create(String) - Static method in class org.junit.platform.engine.TestTag
-
Create a
TestTag
from the suppliedname
. - create(LauncherConfig) - Static method in class org.junit.platform.launcher.core.LauncherFactory
-
Factory method for creating a new
Launcher
using the suppliedLauncherConfig
. - createConfiguration(ConfigurationParameters) - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy
-
Create a configuration for parallel test execution based on the supplied
ConfigurationParameters
. - createExecutionContext(ExecutionRequest) - Method in class org.junit.jupiter.engine.JupiterTestEngine
- createExecutionContext(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the initial execution context for executing the supplied request.
- createExecutorService(ExecutionRequest) - Method in class org.junit.jupiter.engine.JupiterTestEngine
- createExecutorService(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the executor service to use for executing the supplied request.
- createRegistryFrom(MutableExtensionRegistry, List<Class<? extends Extension>>) - Static method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
-
Factory for creating and populating a new registry from a list of extension types and a parent registry.
- createRegistryWithDefaultExtensions(JupiterConfiguration) - Static method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
-
Factory for creating and populating a new root registry with the default extensions.
- createTestInstance(TestInstanceFactoryContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstanceFactory
-
Callback for creating a test instance for the supplied context.
- createThrowableCollector() - Static method in class org.junit.jupiter.engine.support.JupiterThrowableCollectorFactory
-
Create a new
ThrowableCollector
that treats instances of the OTA'sTestAbortedException
and JUnit 4'sorg.junit.AssumptionViolatedException
as aborting. - createThrowableCollectorFactory(ExecutionRequest) - Method in class org.junit.jupiter.engine.JupiterTestEngine
- createThrowableCollectorFactory(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create the factory for creating
ThrowableCollector
instances used to handle exceptions that occur during execution of this engine's tests. - CsvFileSource - Annotation Type in org.junit.jupiter.params.provider
-
@CsvFileSource
is anArgumentsSource
which is used to load comma-separated value (CSV) files from one or more classpathresources
. - CsvParsingException - Exception in org.junit.jupiter.params.provider
-
Thrown if an error is encountered while parsing CSV input.
- CsvParsingException(String) - Constructor for exception org.junit.jupiter.params.provider.CsvParsingException
- CsvParsingException(String, Throwable) - Constructor for exception org.junit.jupiter.params.provider.CsvParsingException
- CsvSource - Annotation Type in org.junit.jupiter.params.provider
-
@CsvSource
is anArgumentsSource
which reads comma-separated values (CSV) from one or more supplied CSV lines. - CURRENT_REPETITION_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
-
Placeholder for the current repetition count of a
@RepeatedTest
method:{currentRepetition}
- CUSTOM - org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Allows the specification of a custom
ParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.
D
- DEACTIVATE_ALL_CONDITIONS_PATTERN - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEACTIVATE_ALL_CONDITIONS_PATTERN - Static variable in class org.junit.jupiter.engine.Constants
-
Wildcard pattern which signals that all conditions should be deactivated: "*"
- DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEACTIVATE_CONDITIONS_PATTERN_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to provide a pattern for deactivating conditions: "junit.jupiter.conditions.deactivate"
- debug(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at debug level. - debug(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at debug level. - DEFAULT_AFTER_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_AFTER_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@AfterAll
methods. - DEFAULT_AFTER_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_AFTER_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@AfterEach
methods. - DEFAULT_BEFORE_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_BEFORE_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@BeforeAll
methods. - DEFAULT_BEFORE_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_BEFORE_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@BeforeEach
methods. - DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default test execution mode for top-level classes: "junit.jupiter.execution.parallel.mode.classes.default"
- DEFAULT_DISPLAY_NAME - Static variable in annotation type org.junit.jupiter.params.ParameterizedTest
-
Default display name pattern for the current invocation of a
@ParameterizedTest
method: "[{index}] {arguments}" - DEFAULT_DISPLAY_NAME_GENERATOR_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_DISPLAY_NAME_GENERATOR_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default display name generator class name: "junit.jupiter.displayname.generator.default"
- DEFAULT_EXECUTION_MODE_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_LIFECYCLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_LIFECYCLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all lifecycle methods.
- DEFAULT_PARALLEL_EXECUTION_MODE - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default test execution mode: "junit.jupiter.execution.parallel.mode.default"
- DEFAULT_SCRIPT_ENGINE_NAME - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.The script engine name defaults to
Nashorn
. - DEFAULT_SCRIPT_REASON_PATTERN - Static variable in class org.junit.jupiter.engine.script.Script
-
Deprecated.Default reason message pattern.
- DEFAULT_TEST_FACTORY_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TEST_FACTORY_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@TestFactory
methods. - DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TEST_INSTANCE_LIFECYCLE_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default test instance lifecycle mode: "junit.jupiter.testinstance.lifecycle.default"
- DEFAULT_TEST_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TEST_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@Test
methods. - DEFAULT_TEST_TEMPLATE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TEST_TEMPLATE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all
@TestTemplate
methods. - DEFAULT_TESTABLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TESTABLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all testable methods.
- DEFAULT_TIMEOUT_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- DEFAULT_TIMEOUT_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the default timeout for all testable and lifecycle methods.
- DefaultArgumentConverter - Class in org.junit.jupiter.params.converter
-
DefaultArgumentConverter
is the default implementation of theArgumentConverter
API. - DefaultArgumentsAccessor - Class in org.junit.jupiter.params.aggregator
-
Default implementation of the
ArgumentsAccessor
API. - DefaultArgumentsAccessor(Object...) - Constructor for class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- DefaultJupiterConfiguration - Class in org.junit.jupiter.engine.config
-
Default implementation of the
JupiterConfiguration
API. - DefaultJupiterConfiguration(ConfigurationParameters) - Constructor for class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- DefaultParallelExecutionConfigurationStrategy - Enum in org.junit.platform.engine.support.hierarchical
-
Default implementations of configuration strategies for parallel test execution.
- DefaultTestInstances - Class in org.junit.jupiter.engine.execution
- defaultToString(Object) - Static method in class org.junit.platform.commons.util.StringUtils
-
Convert the supplied
Object
to a defaultString
representation using the following algorithm. - delimiter() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The column delimiter to use when reading the CSV files.
- delimiter() - Method in annotation type org.junit.jupiter.params.provider.CsvSource
-
The column delimiter to use when reading the lines.
- description - Variable in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- Details - Enum in org.junit.platform.console.options
- DirectorySelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a directory so thatTestEngines
can discover tests or containers based on directories in the file system. - DirectorySource - Class in org.junit.platform.engine.support.descriptor
-
Directory based
TestSource
. - disabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Factory for creating disabled results.
- Disabled - Annotation Type in org.junit.jupiter.api
-
@Disabled
is used to signal that the annotated test class or test method is currently disabled and should not be executed. - DisabledIf - Annotation Type in org.junit.jupiter.api.condition
-
Deprecated.Script-based condition APIs and their supporting implementations are deprecated with the intent to remove them in JUnit Jupiter 5.6. Users should instead rely on a combination of other built-in conditions or create and use a custom implementation of
ExecutionCondition
to evaluate the same conditions. - DisabledIfEnvironmentVariable - Annotation Type in org.junit.jupiter.api.condition
-
@DisabledIfEnvironmentVariable
is used to signal that the annotated test class or test method is disabled if the value of the specified environment variable matches the specified regular expression. - DisabledIfSystemProperty - Annotation Type in org.junit.jupiter.api.condition
-
@DisabledIfSystemProperty
is used to signal that the annotated test class or test method is disabled if the value of the specified system property matches the specified regular expression. - DisabledOnJre - Annotation Type in org.junit.jupiter.api.condition
-
@DisabledOnJre
is used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions. - DisabledOnOs - Annotation Type in org.junit.jupiter.api.condition
-
@DisabledOnOs
is used to signal that the annotated test class or test method is disabled on one or more specified operating systems. - discover(EngineDiscoveryRequest, UniqueId) - Method in class org.junit.jupiter.engine.JupiterTestEngine
- discover(EngineDiscoveryRequest, UniqueId) - Method in interface org.junit.platform.engine.TestEngine
-
Discover tests according to the supplied
EngineDiscoveryRequest
. - discover(EngineDiscoveryRequest, UniqueId) - Method in class org.junit.vintage.engine.discovery.VintageDiscoverer
- discover(EngineDiscoveryRequest, UniqueId) - Method in class org.junit.vintage.engine.VintageTestEngine
- discover(LauncherDiscoveryRequest) - Method in interface org.junit.platform.launcher.Launcher
-
Discover tests and build a
TestPlan
according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results. - DiscoveryFilter<T> - Interface in org.junit.platform.engine
-
A
DiscoveryFilter
is applied during test discovery to determine if a given container or test should be included in the test plan. - DiscoverySelector - Interface in org.junit.platform.engine
-
A selector defines what a
TestEngine
can use to discover tests — for example, the name of a Java class, the path to a file or directory, etc. - DiscoverySelectorResolver - Class in org.junit.jupiter.engine.discovery
-
DiscoverySelectorResolver
resolvesTestDescriptors
for containers and tests selected by DiscoverySelectors with the help of theJavaElementsResolver
. - DiscoverySelectorResolver() - Constructor for class org.junit.jupiter.engine.discovery.DiscoverySelectorResolver
- DiscoverySelectors - Class in org.junit.platform.engine.discovery
-
Collection of
static
factory methods for creatingDiscoverySelectors
. - DISPLAY_NAME_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
- DISPLAY_NAME_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.params.ParameterizedTest
- DisplayName - Annotation Type in org.junit.jupiter.api
-
@DisplayName
is used to declare a custom display name for the annotated test class or test method. - DisplayNameGeneration - Annotation Type in org.junit.jupiter.api
-
@DisplayNameGeneration
is used to declare a custom display name generator for the annotated test class. - DisplayNameGenerator - Interface in org.junit.jupiter.api
-
DisplayNameGenerator
defines the SPI for generating display names programmatically. - DisplayNameGenerator.ReplaceUnderscores - Class in org.junit.jupiter.api
-
DisplayNameGenerator
that replaces underscores with spaces. - DisplayNameGenerator.Standard - Class in org.junit.jupiter.api
-
Standard
DisplayNameGenerator
. - doesNotContainIsoControlCharacter(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
does not contain any ISO control characters. - doesNotContainWhitespace(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
does not contain any whitespace characters. - doNotSkip() - Static method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Factory for creating do not skip results.
- doubles() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
double
values to use as sources of arguments; must not be empty. - DYNAMIC - org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter.
- DYNAMIC_CONTAINER_SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- DYNAMIC_TEST_SEGMENT_TYPE - Static variable in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- dynamicContainer(String, Iterable<? extends DynamicNode>) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainer
for the supplied display name and collection of dynamic nodes. - dynamicContainer(String, URI, Stream<? extends DynamicNode>) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainer
for the supplied display name, custom test sourceURI
, and stream of dynamic nodes. - dynamicContainer(String, Stream<? extends DynamicNode>) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainer
for the supplied display name and stream of dynamic nodes. - DynamicContainer - Class in org.junit.jupiter.api
-
A
DynamicContainer
is a container generated at runtime. - DynamicDescendantFilter - Class in org.junit.jupiter.engine.descriptor
-
Filter for dynamic descendants of
TestDescriptors
that implementFilterable
. - DynamicDescendantFilter() - Constructor for class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- DynamicExtensionContext - Class in org.junit.jupiter.engine.descriptor
- DynamicNode - Class in org.junit.jupiter.api
-
DynamicNode
serves as the abstract base class for a container or a test case generated at runtime. - dynamicTest(String, URI, Executable) - Static method in class org.junit.jupiter.api.DynamicTest
-
Factory for creating a new
DynamicTest
for the supplied display name, custom test sourceURI
, and executable code block. - dynamicTest(String, Executable) - Static method in class org.junit.jupiter.api.DynamicTest
-
Factory for creating a new
DynamicTest
for the supplied display name and executable code block. - DynamicTest - Class in org.junit.jupiter.api
-
A
DynamicTest
is a test case generated at runtime. - dynamicTestRegistered(TestDescriptor) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when a new, dynamic
TestDescriptor
has been registered. - dynamicTestRegistered(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- dynamicTestRegistered(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- dynamicTestRegistered(TestIdentifier) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when a new, dynamic
TestIdentifier
has been registered.
E
- EmptySource - Annotation Type in org.junit.jupiter.params.provider
-
@EmptySource
is anArgumentsSource
which provides a single empty argument to the annotated@ParameterizedTest
method. - emptyValue() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The empty value to use when reading the CSV files.
- emptyValue() - Method in annotation type org.junit.jupiter.params.provider.CsvSource
-
The empty value to use when reading the lines.
- enabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Factory for creating enabled results.
- EnabledIf - Annotation Type in org.junit.jupiter.api.condition
-
Deprecated.Script-based condition APIs and their supporting implementations are deprecated with the intent to remove them in JUnit Jupiter 5.6. Users should instead rely on a combination of other built-in conditions or create and use a custom implementation of
ExecutionCondition
to evaluate the same conditions. - EnabledIfEnvironmentVariable - Annotation Type in org.junit.jupiter.api.condition
-
@EnabledIfEnvironmentVariable
is used to signal that the annotated test class or test method is only enabled if the value of the specified environment variable matches the specified regular expression. - EnabledIfSystemProperty - Annotation Type in org.junit.jupiter.api.condition
-
@EnabledIfSystemProperty
is used to signal that the annotated test class or test method is only enabled if the value of the specified system property matches the specified regular expression. - EnabledOnJre - Annotation Type in org.junit.jupiter.api.condition
-
@EnabledOnJre
is used to signal that the annotated test class or test method is only enabled on one or more specified Java Runtime Environment (JRE) versions. - EnabledOnOs - Annotation Type in org.junit.jupiter.api.condition
-
@EnabledOnOs
is used to signal that the annotated test class or test method is only enabled on one or more specified operating systems. - EnableJUnit4MigrationSupport - Annotation Type in org.junit.jupiter.migrationsupport
-
EnableJUnit4MigrationSupport
is a class-level annotation that enables all JUnit 4 migration support within JUnit Jupiter. - EnableRuleMigrationSupport - Annotation Type in org.junit.jupiter.migrationsupport.rules
-
This class-level annotation enables native JUnit 4 rule support within JUnit Jupiter.
- enableTestEngineAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for test engines.
- enableTestExecutionListenerAutoRegistration(boolean) - Method in class org.junit.platform.launcher.core.LauncherConfig.Builder
-
Configure the auto-registration flag for test execution listeners.
- encoding() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The encoding to use when reading the CSV files; must be a valid charset.
- end() - Method in enum org.junit.platform.console.options.Theme
- engine() - Method in annotation type org.junit.jupiter.api.condition.DisabledIf
-
Deprecated.Short name of the
ScriptEngine
to use. - engine() - Method in annotation type org.junit.jupiter.api.condition.EnabledIf
-
Deprecated.Short name of the
ScriptEngine
to use. - ENGINE_ID - Static variable in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- ENGINE_ID - Static variable in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- EngineDescriptor - Class in org.junit.platform.engine.support.descriptor
- EngineDescriptor(UniqueId, String) - Constructor for class org.junit.platform.engine.support.descriptor.EngineDescriptor
-
Create a new
EngineDescriptor
with the suppliedUniqueId
and display name. - EngineDiscoveryRequest - Interface in org.junit.platform.engine
-
EngineDiscoveryRequest
provides aTestEngine
access to the information necessary to discover tests and containers. - EngineDiscoveryRequestResolver<T extends TestDescriptor> - Class in org.junit.platform.engine.support.discovery
-
Configurable test discovery implementation based on
SelectorResolver
andTestDescriptor.Visitor
that can be reused by differentTestEngines
. - EngineDiscoveryRequestResolver.Builder<T extends TestDescriptor> - Class in org.junit.platform.engine.support.discovery
-
Builder for
EngineDiscoveryRequestResolver
. - EngineDiscoveryRequestResolver.InitializationContext<T extends TestDescriptor> - Interface in org.junit.platform.engine.support.discovery
-
The initialization context for creating resolvers and visitors that depend on the
EngineDiscoveryRequest
to be resolved or the engine descriptor that will be used to collect the results. - EngineExecutionContext - Interface in org.junit.platform.engine.support.hierarchical
-
Marker interface for an execution context used by a concrete implementation of
HierarchicalTestEngine
and its collaborators. - EngineExecutionListener - Interface in org.junit.platform.engine
-
Listener to be notified of test execution events by test engines.
- EngineFilter - Class in org.junit.platform.launcher
-
An
EngineFilter
is applied to allTestEngines
before they are used. - entry() - Method in enum org.junit.platform.console.options.Theme
- EnumSource - Annotation Type in org.junit.jupiter.params.provider
- EnumSource.Mode - Enum in org.junit.jupiter.params.provider
-
Enumeration of modes for selecting enum constants by name.
- EnvironmentVariableAccessor() - Constructor for class org.junit.jupiter.engine.script.ScriptAccessor.EnvironmentVariableAccessor
-
Deprecated.
- equals(Object) - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
- equals(Object) - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ClassSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.DirectorySelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.FileSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.MethodSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.ModuleSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.PackageSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- equals(Object) - Method in class org.junit.platform.engine.discovery.UriSelector
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.FileSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- equals(Object) - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- equals(Object) - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- equals(Object) - Method in class org.junit.platform.engine.TestTag
- equals(Object) - Method in class org.junit.platform.engine.UniqueId
- equals(Object) - Method in class org.junit.platform.engine.UniqueId.Segment
- equals(Object) - Method in class org.junit.platform.launcher.TestIdentifier
- error(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at error level. - error(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at error level. - errorMessage() - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the contained parse error message, if any.
- evaluate(Collection<TestTag>) - Method in interface org.junit.platform.launcher.tagexpression.TagExpression
-
Evaluate this tag expression against the supplied collection of tags.
- evaluate(ExtensionRegistry, JupiterConfiguration, ExtensionContext) - Method in class org.junit.jupiter.engine.execution.ConditionEvaluator
-
Evaluate all
ExecutionCondition
extensions registered for the suppliedExtensionContext
. - evaluate(Script, Bindings) - Method in class org.junit.jupiter.engine.script.ScriptExecutionManager
-
Deprecated.Evaluate the script using the given bindings.
- evaluateExecutionCondition(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ExecutionCondition
-
Evaluate this condition for the supplied
ExtensionContext
. - evaluateExecutionCondition(ExtensionContext) - Method in class org.junit.jupiter.migrationsupport.conditions.IgnoreCondition
-
Containers/tests are disabled if
@Ignore
is present on the test class or method. - exact(TestDescriptor) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating an exact match without any children.
- exact(TestDescriptor, Supplier<Set<? extends DiscoverySelector>>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating an exact match with potential children.
- ExceptionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with exceptions.
- EXCLUDE - org.junit.jupiter.params.provider.EnumSource.Mode
-
Select all declared enum constants except those supplied via the
EnumSource.names()
attribute. - excludeClassNamePatterns(String...) - Static method in interface org.junit.platform.engine.discovery.ClassNameFilter
-
Create a new exclude
ClassNameFilter
based on the supplied patterns. - ExcludeClassNamePatterns - Annotation Type in org.junit.platform.suite.api
-
@ExcludeClassNamePatterns
specifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform. - excluded() - Method in class org.junit.platform.engine.FilterResult
- excluded(String) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating excluded results.
- excludeEngines(String...) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilter
based on the supplied engine IDs. - excludeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new exclude
EngineFilter
based on the supplied engine IDs. - ExcludeEngines - Annotation Type in org.junit.platform.suite.api
-
@ExcludeEngines
specifies the IDs ofTestEngines
to be excluded when running a test suite on the JUnit Platform. - excludePackageNames(String...) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new exclude
PackageNameFilter
based on the supplied package names. - excludePackageNames(List<String>) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new exclude
PackageNameFilter
based on the supplied package names. - ExcludePackages - Annotation Type in org.junit.platform.suite.api
-
@ExcludePackages
specifies the packages to be excluded when running a test suite on the JUnit Platform. - excludeTags(String...) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an exclude filter based on the supplied tag expressions.
- excludeTags(List<String>) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an exclude filter based on the supplied tag expressions.
- ExcludeTags - Annotation Type in org.junit.platform.suite.api
-
@ExcludeTags
specifies the tags or tag expressions to be excluded when running a test suite on the JUnit Platform. - ExclusiveResource - Class in org.junit.platform.engine.support.hierarchical
-
An exclusive resource identified by a key with a lock mode that is used to synchronize access to shared resources when executing nodes in parallel.
- ExclusiveResource(String, ExclusiveResource.LockMode) - Constructor for class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Create a new
ExclusiveResource
. - ExclusiveResource.LockMode - Enum in org.junit.platform.engine.support.hierarchical
-
LockMode
translates to the respectiveReadWriteLock
locks. - Executable - Interface in org.junit.jupiter.api.function
-
Executable
is a functional interface that can be used to implement any generic block of code that potentially throws aThrowable
. - ExecutableInvoker - Class in org.junit.jupiter.engine.execution
-
ExecutableInvoker
encapsulates the invocation of aExecutable
(i.e., method or constructor), including support for dynamic resolution of method parameters viaParameterResolvers
. - ExecutableInvoker() - Constructor for class org.junit.jupiter.engine.execution.ExecutableInvoker
- ExecutableInvoker.ReflectiveInterceptorCall<E extends Executable,T> - Interface in org.junit.jupiter.engine.execution
- ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall - Interface in org.junit.jupiter.engine.execution
- execute() - Method in interface org.junit.jupiter.api.function.Executable
- execute() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Execute this task.
- execute() - Method in interface org.junit.platform.engine.support.hierarchical.SingleTestExecutor.Executable
-
Deprecated.Execute the test.
- execute() - Method in interface org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable
-
Execute this executable, potentially throwing a
Throwable
that signals abortion or failure. - execute(C, Node.DynamicTestExecutor) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Execute the behavior of this node.
- execute(PrintStream, PrintStream, String...) - Static method in class org.junit.platform.console.ConsoleLauncher
- execute(PrintWriter) - Method in class org.junit.platform.console.tasks.ConsoleTestExecutor
- execute(JupiterEngineExecutionContext, Node.DynamicTestExecutor) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- execute(JupiterEngineExecutionContext, Node.DynamicTestExecutor) - Method in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- execute(ExecutionRequest) - Method in class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
-
Create an executor service; create an initial execution context; execute the behavior of all nodes in the hierarchy starting with the supplied
request
's root and notify its execution listener of test execution events. - execute(ExecutionRequest) - Method in interface org.junit.platform.engine.TestEngine
-
Execute tests according to the supplied
ExecutionRequest
. - execute(ExecutionRequest) - Method in class org.junit.vintage.engine.VintageTestEngine
- execute(ThrowableCollector.Executable) - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Execute the supplied
ThrowableCollector.Executable
and collect anyThrowable
thrown during the execution. - execute(TestDescriptor) - Method in interface org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor
-
Submit a dynamic test descriptor for immediate execution.
- execute(LauncherDiscoveryRequest, TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Execute a
TestPlan
which is built according to the suppliedLauncherDiscoveryRequest
by querying all registered engines and collecting their results, and notify registered listeners about the progress and results of the execution. - execute(TestPlan, TestExecutionListener...) - Method in interface org.junit.platform.launcher.Launcher
-
Execute the supplied
TestPlan
and notify registered listeners about the progress and results of the execution. - execute(RunnerTestDescriptor) - Method in class org.junit.vintage.engine.execution.RunnerExecutor
- executeMethod(String) - Method in class org.junit.jupiter.migrationsupport.rules.adapter.AbstractTestRuleAdapter
- executeMethod(String, Class<?>[], Object...) - Method in class org.junit.jupiter.migrationsupport.rules.adapter.AbstractTestRuleAdapter
- executeSafely(SingleTestExecutor.Executable) - Method in class org.junit.platform.engine.support.hierarchical.SingleTestExecutor
-
Deprecated.Execute the supplied
SingleTestExecutor.Executable
and return aTestExecutionResult
based on the outcome. - Execution - Annotation Type in org.junit.jupiter.api.parallel
-
@Execution
is used to configure the parallel execution mode of a test class or test method. - ExecutionCondition - Interface in org.junit.jupiter.api.extension
-
ExecutionCondition
defines theExtension
API for programmatic, conditional test execution. - executionFinished(TestDescriptor, TestExecutionResult) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree has finished, regardless of the outcome.
- executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionFinished(TestIdentifier, TestExecutionResult) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
has finished, regardless of the outcome. - executionFinished(TestIdentifier, TestExecutionResult) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- ExecutionMode - Enum in org.junit.jupiter.api.parallel
-
Supported execution modes for parallel test execution.
- ExecutionRequest - Class in org.junit.platform.engine
-
Provides a single
TestEngine
access to the information necessary to execute its tests. - ExecutionRequest(TestDescriptor, EngineExecutionListener, ConfigurationParameters) - Constructor for class org.junit.platform.engine.ExecutionRequest
- executionSkipped(TestDescriptor, String) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree has been skipped.
- executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionSkipped(TestIdentifier, String) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
has been skipped. - executionSkipped(TestIdentifier, String) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- executionStarted(TestDescriptor) - Method in interface org.junit.platform.engine.EngineExecutionListener
-
Must be called when the execution of a leaf or subtree of the test tree is about to be started.
- executionStarted(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- executionStarted(TestIdentifier) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- executionStarted(TestIdentifier) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of a leaf or subtree of the
TestPlan
is about to be started. - executionStarted(TestIdentifier) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- expand() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Expand this match in order to resolve the children of the contained
TestDescriptor
. - ExpectedExceptionAdapter - Class in org.junit.jupiter.migrationsupport.rules.adapter
- ExpectedExceptionAdapter(TestRuleAnnotatedMember) - Constructor for class org.junit.jupiter.migrationsupport.rules.adapter.ExpectedExceptionAdapter
- ExpectedExceptionSupport - Class in org.junit.jupiter.migrationsupport.rules
-
This
Extension
provides native support for theExpectedException
rule from JUnit 4. - ExpectedExceptionSupport() - Constructor for class org.junit.jupiter.migrationsupport.rules.ExpectedExceptionSupport
- extend() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- ExtendWith - Annotation Type in org.junit.jupiter.api.extension
-
@ExtendWith
is a repeatable annotation that is used to register extensions for the annotated test class or test method. - Extension - Interface in org.junit.jupiter.api.extension
-
Marker interface for all extensions.
- ExtensionConfigurationException - Exception in org.junit.jupiter.api.extension
-
Thrown if an error is encountered regarding the configuration of an extension.
- ExtensionConfigurationException(String) - Constructor for exception org.junit.jupiter.api.extension.ExtensionConfigurationException
- ExtensionConfigurationException(String, Throwable) - Constructor for exception org.junit.jupiter.api.extension.ExtensionConfigurationException
- ExtensionContext - Interface in org.junit.jupiter.api.extension
-
ExtensionContext
encapsulates the context in which the current test or container is being executed. - ExtensionContext.Namespace - Class in org.junit.jupiter.api.extension
-
A
Namespace
is used to provide a scope for data saved by extensions within aExtensionContext.Store
. - ExtensionContext.Store - Interface in org.junit.jupiter.api.extension
-
Store
provides methods for extensions to save and retrieve data. - ExtensionContext.Store.CloseableResource - Interface in org.junit.jupiter.api.extension
-
Classes implementing this interface indicate that they want to
ExtensionContext.Store.CloseableResource.close()
some underlying resource or resources when the enclosingStore
is closed. - ExtensionContextException - Exception in org.junit.jupiter.api.extension
-
Thrown if an error is encountered regarding the use of an
ExtensionContext
orExtensionContext.Store
. - ExtensionContextException(String) - Constructor for exception org.junit.jupiter.api.extension.ExtensionContextException
- ExtensionRegistrar - Interface in org.junit.jupiter.engine.extension
-
An
ExtensionRegistrar
is used to register extension. - ExtensionRegistry - Interface in org.junit.jupiter.engine.extension
-
An
ExtensionRegistry
holds all registered extensions (i.e. - Extensions - Annotation Type in org.junit.jupiter.api.extension
-
@Extensions
is a container for one or more@ExtendWith
declarations. - EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- EXTENSIONS_AUTODETECTION_ENABLED_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to enable auto-detection and registration of extensions via Java's
ServiceLoader
mechanism: "junit.jupiter.extensions.autodetection.enabled" - ExtensionValuesStore - Class in org.junit.jupiter.engine.execution
-
ExtensionValuesStore
is used inside implementations ofExtensionContext
to store and retrieve values. - ExtensionValuesStore(ExtensionValuesStore) - Constructor for class org.junit.jupiter.engine.execution.ExtensionValuesStore
- ExternalResourceAdapter - Class in org.junit.jupiter.migrationsupport.rules.adapter
- ExternalResourceAdapter(TestRuleAnnotatedMember) - Constructor for class org.junit.jupiter.migrationsupport.rules.adapter.ExternalResourceAdapter
- ExternalResourceSupport - Class in org.junit.jupiter.migrationsupport.rules
-
This
Extension
provides native support for subclasses of theExternalResource
rule from JUnit 4. - ExternalResourceSupport() - Constructor for class org.junit.jupiter.migrationsupport.rules.ExternalResourceSupport
F
- fail() - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test without a failure message.
- fail(String) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given failure
message
. - fail(String, Throwable) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given failure
message
as well as the underlyingcause
. - fail(Throwable) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given underlying
cause
. - fail(Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the failure message retrieved from the given
messageSupplier
. - failed() - Method in enum org.junit.platform.console.options.Theme
- failed(Throwable) - Static method in class org.junit.platform.engine.TestExecutionResult
-
Create a
TestExecutionResult
for a failed execution of a test or container with the suppliedthrowable
. - FAILED - org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container failed.
- failure(Exception) - Static method in class org.junit.platform.commons.function.Try
-
Convert the supplied exception into a failed
Try
. - FilePosition - Class in org.junit.platform.engine.support.descriptor
- FileSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a file so thatTestEngines
can discover tests or containers based on files in the file system. - FileSource - Class in org.junit.platform.engine.support.descriptor
-
File based
TestSource
with an optional position. - FileSystemSource - Interface in org.junit.platform.engine.support.descriptor
-
File system based
TestSource
. - filter(Filter) - Method in class org.junit.platform.runner.JUnitPlatform
- Filter<T> - Interface in org.junit.platform.engine
-
A
Filter
can be applied to determine if an object should be included or excluded in a result set. - Filterable - Interface in org.junit.jupiter.engine.descriptor
-
Filterable
is implemented byTestDescriptors
that may register dynamic tests during execution and support selective test execution. - FilterResult - Class in org.junit.platform.engine
-
The result of applying a
Filter
. - filters(Filter<?>...) - Method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Add all of the supplied
filters
to the request. - findAllClassesInClasspathRoot(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. - findAllClassesInClasspathRoot(URI, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInClasspathRoot(URI, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInModule(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. - findAllClassesInModule(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInModule(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Find all classes for the given module name.
- findAllClassesInModule(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInPackage(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. - findAllClassesInPackage(String, Predicate<Class<?>>, Predicate<String>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllClassesInPackage(String, ClassFilter) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findAllNonSystemBootModuleNames() - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Find all non-system boot modules names.
- findAnnotatedFields(Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
, using top-down search semantics within the type hierarchy. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
and match the specifiedpredicate
, using top-down search semantics within the type hierarchy. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
and match the specifiedpredicate
, using the supplied hierarchy traversal mode. - findAnnotatedFields(Class<?>, Class<? extends Annotation>, Predicate<Field>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Find all fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
and match the specifiedpredicate
. - findAnnotatedFieldValues(Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all static fields of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Class<?>, Class<? extends Annotation>, Class<T>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all static fields of the supplied class or interface that are declared to be of the specified
fieldType
and are annotated or meta-annotated with the specifiedannotationType
, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Object, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all non-static fields of the supplied
instance
that are annotated or meta-annotated with the specifiedannotationType
, using top-down search semantics within the type hierarchy. - findAnnotatedFieldValues(Object, Class<? extends Annotation>, Class<T>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the values of all non-static fields of the supplied
instance
that are declared to be of the specifiedfieldType
and are annotated or meta-annotated with the specifiedannotationType
, using top-down search semantics within the type hierarchy. - findAnnotatedMethods(Class<?>, Class<? extends Annotation>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all methods of the supplied class or interface that are annotated or meta-annotated with the specified
annotationType
. - findAnnotatedMethods(Class<?>, Class<? extends Annotation>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findAnnotation(Class<A>) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Find the first annotation of
annotationType
that is either present or meta-present on theParameter
for this context. - findAnnotation(Class<A>) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Find the first annotation of
annotationType
that is either present or meta-present on theMethod
for this descriptor. - findAnnotation(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the first annotation of
annotationType
that is either directly present, meta-present, or indirectly present on the suppliedelement
. - findAnnotation(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findAnnotation(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find the first annotation of
annotationType
that is either present or meta-present on the supplied optionalelement
. - findAnnotation(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findByUniqueId(UniqueId) - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- findByUniqueId(UniqueId) - Method in interface org.junit.platform.engine.TestDescriptor
-
Find the descriptor with the supplied unique ID.
- findConstructors(Class<?>, Predicate<Constructor<?>>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Find all constructors in the supplied class that match the supplied predicate.
- findFields(Class<?>, Predicate<Field>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all fields of the supplied class or interface that match the specified
predicate
. - findFields(Class<?>, Predicate<Field>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findInstance(Class<T>) - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Find the first test instance that is an instance of the supplied required type, checking from innermost to outermost.
- findInstance(Class<T>) - Method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- findMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find the first
Method
of the supplied class or interface that meets the specified criteria, beginning with the specified class or interface and traversing up the type hierarchy until such a method is found or the type hierarchy is exhausted. - findMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findMethod(Class<?>, String, String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find the first
Method
of the supplied class or interface that meets the specified criteria, beginning with the specified class or interface and traversing up the type hierarchy until such a method is found or the type hierarchy is exhausted. - findMethod(Class<?>, String, String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findMethods(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Find all methods of the supplied class or interface that match the specified
predicate
, using top-down search semantics within the type hierarchy. - findMethods(Class<?>, Predicate<Method>, HierarchyTraversalMode) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all methods of the supplied class or interface that match the specified
predicate
. - findMethods(Class<?>, Predicate<Method>, ReflectionUtils.HierarchyTraversalMode) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Find all nested classes within the given class that conform to the given predicate.
- findNestedClasses(Class<?>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- findPublicAnnotatedFields(Class<?>, Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all
public
fields of the supplied class or interface that are declared to be of the specifiedfieldType
and are annotated or meta-annotated with the specifiedannotationType
. - findPublicAnnotatedFields(Class<?>, Class<?>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findRepeatableAnnotations(Class<A>) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Find all repeatable annotations of
annotationType
that are either present or meta-present on theParameter
for this context. - findRepeatableAnnotations(Class<A>) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Find all repeatable annotations of
annotationType
that are either present or meta-present on theMethod
for this descriptor. - findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all repeatable annotations of the supplied
annotationType
that are either present, indirectly present, or meta-present on the suppliedAnnotatedElement
. - findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- findRepeatableAnnotations(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Find all repeatable annotations of the supplied
annotationType
that are either present, indirectly present, or meta-present on the supplied optionalelement
. - findRepeatableAnnotations(Optional<? extends AnnotatedElement>, Class<A>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
- FIXED - org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Uses the mandatory "fixed.parallelism" configuration parameter as the desired parallelism.
- FLAT - org.junit.platform.console.options.Details
-
Test plan execution details are rendered in a flat, line-by-line mode.
- floats() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
float
values to use as sources of arguments; must not be empty. - forBiConsumer(BiConsumer<Throwable, Supplier<String>>) - Static method in class org.junit.platform.launcher.listeners.LoggingListener
-
Create a
LoggingListener
which delegates to the suppliedBiConsumer
for consumption of logging messages. - forEngine(String) - Static method in class org.junit.platform.engine.UniqueId
-
Create an engine's unique ID from its
engineId
using the default format. - forJavaUtilLogging() - Static method in class org.junit.platform.launcher.listeners.LoggingListener
- forJavaUtilLogging(Level) - Static method in class org.junit.platform.launcher.listeners.LoggingListener
- ForkJoinPoolHierarchicalTestExecutorService - Class in org.junit.platform.engine.support.hierarchical
- ForkJoinPoolHierarchicalTestExecutorService(ConfigurationParameters) - Constructor for class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
-
Create a new
ForkJoinPoolHierarchicalTestExecutorService
based on the suppliedConfigurationParameters
. - from(int) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create a new
FilePosition
using the suppliedline
number and an undefined column number. - from(int, int) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create a new
FilePosition
using the suppliedline
andcolumn
numbers. - from(File) - Static method in class org.junit.platform.engine.support.descriptor.DirectorySource
-
Create a new
DirectorySource
using the supplied directory. - from(File) - Static method in class org.junit.platform.engine.support.descriptor.FileSource
-
Create a new
FileSource
using the suppliedfile
. - from(File, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.FileSource
- from(Class<?>) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class. - from(Class<?>, Method) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
- from(Class<?>, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
- from(Package) - Static method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Create a new
PackageSource
using the supplied JavaPackage
. - from(Method) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the suppliedmethod
. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
using the supplied classpath resource name. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class name. - from(String) - Static method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Create a new
PackageSource
using the suppliedpackageName
. - from(String, String) - Static method in class org.junit.platform.engine.reporting.ReportEntry
-
Factory for creating a new
ReportEntry
from a key-value pair. - from(String, String) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name and method name. - from(String, String, Class<?>...) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name, method name, and method parameter types. - from(String, String, String) - Static method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Create a new
MethodSource
using the supplied class name, method name, and method parameter types. - from(String, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
using the supplied classpath resource name andFilePosition
. - from(String, FilePosition) - Static method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Create a new
ClassSource
using the supplied class name and file position. - from(URI) - Static method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Create a new
ClasspathResourceSource
from the suppliedURI
. - from(URI) - Static method in interface org.junit.platform.engine.support.descriptor.UriSource
-
Create a new
UriSource
using the suppliedURI
. - from(Collection<? extends TestSource>) - Static method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
-
Create a new
CompositeTestSource
based on the supplied collection ofsources
. - from(Collection<TestDescriptor>) - Static method in class org.junit.platform.launcher.TestPlan
-
Construct a new
TestPlan
from the supplied collection ofTestDescriptors
. - from(Map<String, String>) - Static method in class org.junit.platform.engine.reporting.ReportEntry
-
Factory for creating a new
ReportEntry
from a map of key-value pairs. - from(TestDescriptor) - Static method in class org.junit.platform.launcher.TestIdentifier
-
Factory for creating a new
TestIdentifier
from aTestDescriptor
. - fromQuery(String) - Static method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Create an optional
FilePosition
by parsing the suppliedquery
string. - FunctionUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
Functions
,Predicates
, etc.
G
- generateDisplayNameForClass(Class<?>) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given top-level or
static
nested test class. - generateDisplayNameForClass(Class<?>) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForClass(Class<?>) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- generateDisplayNameForMethod(Class<?>, Method) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given method.
- generateDisplayNameForMethod(Class<?>, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForMethod(Class<?>, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- generateDisplayNameForNestedClass(Class<?>) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given
@Nested
inner test class. - generateDisplayNameForNestedClass(Class<?>) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForNestedClass(Class<?>) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- GenericBeforeAndAfterAdvice - Interface in org.junit.jupiter.migrationsupport.rules.adapter
- get() - Method in interface org.junit.jupiter.api.function.ThrowingSupplier
-
Get a result, potentially throwing an exception.
- get() - Method in interface org.junit.jupiter.params.provider.Arguments
-
Get the arguments used for an invocation of the
@ParameterizedTest
method. - get() - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a success, get the contained value; if thisTry
is a failure, throw the contained exception. - get(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as an
Object
. - get(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- get(int, Class<T>) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as an instance of the required type.
- get(int, Class<T>) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- get(Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Get the value that is stored under the supplied
key
. - get(Object) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- get(Object, Class<T>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- get(Object, 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
. - get(String) - Method in class org.junit.jupiter.engine.script.ScriptAccessor.ConfigurationParameterAccessor
-
Deprecated.
- get(String) - Method in class org.junit.jupiter.engine.script.ScriptAccessor.EnvironmentVariableAccessor
-
Deprecated.
- get(String) - Method in interface org.junit.jupiter.engine.script.ScriptAccessor
-
Deprecated.Get the value of the property with the supplied name.
- get(String) - Method in class org.junit.jupiter.engine.script.ScriptAccessor.SystemPropertyAccessor
-
Deprecated.
- get(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the configuration parameter stored under the specified
key
. - get(String) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- get(String, Function<String, T>) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get and transform the configuration parameter stored under the specified
key
using the specifiedtransformer
. - get(String, Function<String, T>) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- getAdditionalClasspathEntries() - Method in class org.junit.platform.console.options.CommandLineOptions
- getAdditionalExtensions() - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Get the additional extensions for this invocation.
- getAdditionalTestEngines() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional test engines that should be added to the
Launcher
. - getAdditionalTestExecutionListeners() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Get the collection of additional test execution listeners that should be added to the
Launcher
. - getAllAssignmentCompatibleClasses(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Return all classes and interfaces that can be used as assignment types for instances of the specified
Class
, including itself. - getAllClasspathRootDirectories() - Static method in class org.junit.platform.commons.util.ReflectionUtils
- getAllInstances() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get all test instances, ordered from outermost to innermost.
- getAllInstances() - Method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- getAnnotationAsString() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- getAnnotationType() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- getArguments() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the arguments of the executable in this invocation context.
- getArtifactId() - Method in class org.junit.jupiter.engine.JupiterTestEngine
-
Returns
junit-jupiter-engine
as the artifact ID. - getArtifactId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the Artifact ID of the JAR in which this test engine is packaged.
- getArtifactId() - Method in class org.junit.vintage.engine.VintageTestEngine
-
Returns
junit-vintage-engine
as the artifact ID. - getAttribute(Class<?>, String) - Static method in class org.junit.platform.commons.util.PackageUtils
-
Get the value of the specified attribute name, specified as a string, or an empty
Optional
if the attribute was not found. - getAttribute(Class<?>, Function<Package, String>) - Static method in class org.junit.platform.commons.util.PackageUtils
-
Get the package attribute for the supplied
type
using the suppliedfunction
. - getBoolean(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Boolean
, performing automatic type conversion as necessary. - getBoolean(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getBoolean(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the boolean configuration parameter stored under the specified
key
. - getBoolean(String) - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- getByte(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Byte
, performing automatic type conversion as necessary. - getByte(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getCharacter(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Character
, performing automatic type conversion as necessary. - getCharacter(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getChildren() - Method in class org.junit.jupiter.api.DynamicContainer
- getChildren() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getChildren() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the immutable set of children of this descriptor.
- getChildren(String) - Method in class org.junit.platform.launcher.TestPlan
-
Get the children of the supplied unique ID.
- getChildren(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get the children of the supplied
TestIdentifier
. - getClassName() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
Get the selected class name.
- getClassName() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected class name.
- getClassName() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Get the class name of this source.
- getClassName() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the class name of this source.
- getClassName(TestPlan, TestIdentifier) - Static method in class org.junit.platform.launcher.listeners.LegacyReportingUtils
-
Get the class name for the supplied
TestIdentifier
using the suppliedTestPlan
. - getClassNameFilter() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the class name filter built from the
ClassNameFilters
andPackageNameFilters
in theEngineDiscoveryRequest
that is about to be resolved. - getClasspathResourceName() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
-
Get the name of the selected classpath resource.
- getClasspathResourceName() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Get the name of the source classpath resource.
- getClasspathRoot() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
-
Get the selected classpath root directory as an
URI
. - getColumn() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Get the column number of this
FilePosition
, if available. - getConfiguration() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- getConfiguration() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getConfigurationParameter(String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the configuration parameter stored under the specified
key
. - getConfigurationParameter(String) - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the configuration parameter stored under the specified
key
. - getConfigurationParameters() - Method in class org.junit.platform.console.options.CommandLineOptions
- getConfigurationParameters() - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
ConfigurationParameters
for this request. - getConfigurationParameters() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the
ConfigurationParameters
that the engine may use to influence test execution. - getContainersAbortedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers aborted.
- getContainersFailedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers that failed.
- getContainersFoundCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers found.
- getContainersSkippedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers skipped.
- getContainersStartedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers started.
- getContainersSucceededCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of containers that succeeded.
- getCorePoolSize() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the core thread pool size to be used.
- getCurrentRepetition() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the current repetition of the corresponding
@RepeatedTest
method. - getDeclaredConstructor(Class<T>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Get the sole declared
Constructor
for the supplied class. - getDeclaringExecutable() - Method in interface org.junit.jupiter.api.extension.ParameterContext
- getDecoratedRunner() - Method in interface org.junit.vintage.engine.descriptor.RunnerDecorator
- getDefaultChildExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getDefaultClassesExecutionMode() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getDefaultClassesExecutionMode() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getDefaultClassesExecutionMode() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getDefaultClassLoader() - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
- getDefaultDisplayNameGenerator() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getDefaultDisplayNameGenerator() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getDefaultDisplayNameGenerator() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getDefaultExecutionMode() - Method in interface org.junit.jupiter.api.MethodOrderer
-
Get the default
ExecutionMode
for the test class configured with thisMethodOrderer
. - getDefaultExecutionMode() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getDefaultExecutionMode() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getDefaultExecutionMode() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getDefaultTestInstanceLifecycle() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getDefaultTestInstanceLifecycle() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getDefaultTestInstanceLifecycle() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getDescendants() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the immutable set of all descendants of this descriptor.
- getDescendants(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get all descendants of the supplied
TestIdentifier
(i.e., all of its children and their children, recursively). - getDescription() - Method in class org.junit.platform.runner.JUnitPlatform
- getDescription() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- getDetails() - Method in class org.junit.platform.console.options.CommandLineOptions
- getDirectory() - Method in class org.junit.platform.engine.discovery.DirectorySelector
-
Get the selected directory as a
File
. - getDiscoveryRequest() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the
EngineDiscoveryRequest
that is about to be resolved. - getDisplayName() - Method in class org.junit.jupiter.api.DynamicNode
-
Get the display name of this
DynamicNode
. - getDisplayName() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the display name for the current test or container.
- getDisplayName() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the display name of the current test or container.
- getDisplayName() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getDisplayName() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the display name for this descriptor.
- getDisplayName() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the display name of the represented test or container.
- getDisplayName(int) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Get the display name for this invocation.
- getDouble(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Double
, performing automatic type conversion as necessary. - getDouble(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getDynamicDescendantFilter() - Method in interface org.junit.jupiter.engine.descriptor.Filterable
- getDynamicDescendantFilter() - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- getDynamicDescendantFilter() - Method in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- getElement() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
AnnotatedElement
corresponding to the current extension context, if available. - getElement() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getEnclosingInstances() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get the enclosing test instances, excluding the innermost test instance, ordered from outermost to innermost.
- getEnclosingInstances() - Method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- getEnclosingTestClasses() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getEnclosingTestClasses() - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- getEnclosingTestClasses() - Method in class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
- getEngine() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- getEngineDescriptor() - Method in interface org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.InitializationContext
-
Get the engine's
TestDescriptor
that will be used to collect the results. - getEngineExecutionListener() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the
EngineExecutionListener
to be notified of test execution events. - getEngineFilters() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
EngineFilters
for this request. - getEngineId() - Method in class org.junit.platform.engine.UniqueId
-
Get the engine ID stored in this
UniqueId
, if available. - getException() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary.Failure
-
Get the
Throwable
causing the failure. - getExcludedClassNamePatterns() - Method in class org.junit.platform.console.options.CommandLineOptions
- getExcludedEngines() - Method in class org.junit.platform.console.options.CommandLineOptions
- getExcludedPackages() - Method in class org.junit.platform.console.options.CommandLineOptions
- getExcludedTagExpressions() - Method in class org.junit.platform.console.options.CommandLineOptions
- getExclusiveResources() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getExclusiveResources() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getExclusiveResources() - Method in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- getExclusiveResources() - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Get the set of exclusive resources required to execute this node.
- getExecutable() - Method in class org.junit.jupiter.api.DynamicTest
-
Get the
executable
code block associated with thisDynamicTest
. - getExecutable() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the method or constructor of this invocation context.
- getExecutionConditionFilter() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getExecutionConditionFilter() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getExecutionConditionFilter() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getExecutionException() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the exception that was thrown during execution of the test or container associated with this
ExtensionContext
, if available. - getExecutionException() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getExecutionListener() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- getExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- getExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
- getExecutionMode() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Get the execution mode of this task.
- getExecutionMode() - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Get the preferred of execution mode for parallel execution of this node.
- getExitCode() - Method in class org.junit.platform.console.ConsoleLauncherExecutionResult
- getExplicitExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getExplicitExecutionMode() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getExtensionContext() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getExtensionRegistry() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getExtensions(Class<E>) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistry
-
Get all
Extensions
of the specified type that are present in this registry or one of its ancestors. - getFailures() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get an immutable list of the failures of the test plan execution.
- getFile() - Method in class org.junit.platform.engine.discovery.FileSelector
-
Get the selected file as a
File
. - getFile() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
-
Get the source directory.
- getFile() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
Get the source file.
- getFile() - Method in interface org.junit.platform.engine.support.descriptor.FileSystemSource
-
Get the source file or directory.
- getFilters() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- getFiltersByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
DiscoveryFilters
for this request, filtered by a particular type. - getFloat(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Float
, performing automatic type conversion as necessary. - getFloat(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getFullyQualifiedMethodName(Class<?>, Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Build the fully qualified method name for the method described by the supplied class and method.
- getFullyQualifiedMethodName(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Build the fully qualified method name for the method described by the supplied class, method name, and parameter types.
- getGroupId() - Method in class org.junit.jupiter.engine.JupiterTestEngine
-
Returns
org.junit.jupiter
as the group ID. - getGroupId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the Group ID of the JAR in which this test engine is packaged.
- getGroupId() - Method in class org.junit.vintage.engine.VintageTestEngine
-
Returns
org.junit.vintage
as the group ID. - getId() - Method in class org.junit.jupiter.engine.JupiterTestEngine
- getId() - Method in interface org.junit.platform.engine.TestEngine
-
Get the ID that uniquely identifies this test engine.
- getId() - Method in class org.junit.vintage.engine.VintageTestEngine
- getIncludedClassNamePatterns() - Method in class org.junit.platform.console.options.CommandLineOptions
- getIncludedEngines() - Method in class org.junit.platform.console.options.CommandLineOptions
- getIncludedPackages() - Method in class org.junit.platform.console.options.CommandLineOptions
- getIncludedTagExpressions() - Method in class org.junit.platform.console.options.CommandLineOptions
- getIndex() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the index of the
Parameter
for this context within the parameter list of theExecutable
that declares the parameter. - getInnermostInstance() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get the innermost test instance.
- getInnermostInstance() - Method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- getInteger(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Integer
, performing automatic type conversion as necessary. - getInteger(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getJavaClass() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
Get the selected
Class
. - getJavaClass() - Method in class org.junit.platform.engine.discovery.MethodSelector
- getJavaClass() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
Get the Java class of this source.
- getJavaMethod() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected
Method
. - getKeepAliveSeconds() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the number of seconds for which inactive threads should be kept alive before terminating them and shrinking the thread pool.
- getKey() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Get the key of this resource.
- getKeyValuePairs() - Method in class org.junit.platform.engine.reporting.ReportEntry
-
Get an unmodifiable copy of the map of key-value pairs to be published.
- getLastSegment() - Method in class org.junit.platform.engine.UniqueId
-
Get the last
UniqueId.Segment
of thisUniqueId
. - getLegacyReportingName() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getLegacyReportingName() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getLegacyReportingName() - Method in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- getLegacyReportingName() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the name of this descriptor in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4.
- getLegacyReportingName() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the name of this identifier in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4.
- getLegacyReportingName() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- getLine() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
-
Get the line number of this
FilePosition
. - getLocation(Object) - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
-
Get the location from which the supplied object's class was loaded.
- getLockMode() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
-
Get the lock mode of this resource.
- getLogger(Class<?>) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Get a
Logger
for the specified class. - getLong(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Long
, performing automatic type conversion as necessary. - getLong(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getMatches() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Returns the matches contained by this resolution.
- getMaxPoolSize() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the maximum thread pool size to be used.
- getMethod() - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Get the method for this descriptor.
- getMethodDescriptors() - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the list of method descriptors to order.
- getMethodName() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the selected method name.
- getMethodName() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the method name of this source.
- getMethodParameterTypes() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the parameter types for the selected method as a
String
, typically a comma-separated list of primitive types, fully qualified class names, or array types. - getMethodParameterTypes() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
-
Get the method parameter types of this source.
- getMinimumRunnable() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the minimum number of runnable threads to be used.
- getModuleName() - Method in class org.junit.platform.engine.discovery.ModuleSelector
-
Get the selected module name.
- getModuleName(Class<?>) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Return the name of the module that the class or interface is a member of.
- getModuleVersion(Class<?>) - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Return the raw version of the module that the class or interface is a member of.
- getName() - Method in class org.junit.platform.engine.TestTag
-
Get the name of this tag.
- getOnlyElement(Collection<T>) - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Read the only element of a collection of size 1.
- getOrComputeIfAbsent(Class<V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Get the object of type
type
that is present in thisStore
(keyed bytype
); and otherwise invoke the default constructor fortype
to generate the object, store it, and return it. - getOrComputeIfAbsent(K, Function<K, V>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Get the value that is stored under the supplied
key
. - getOrComputeIfAbsent(K, Function<K, V>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- getOrComputeIfAbsent(K, Function<K, 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
. - getOrComputeIfAbsent(K, Function<K, V>, Class<V>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
- getOrDefault(Object, Class<V>, 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
, or the supplieddefaultValue
if no value is found for the suppliedkey
in this store or in an ancestor. - getOrThrow(Function<? super Exception, E>) - Method in class org.junit.platform.commons.function.Try
- getOuterInstance() - Method in interface org.junit.jupiter.api.extension.TestInstanceFactoryContext
-
Get the instance of the outer class, if available.
- getOutermostInstance(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.
- getPackageName() - Method in class org.junit.platform.engine.discovery.PackageSelector
-
Get the selected package name.
- getPackageName() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
-
Get the package name of this test source.
- getParallelism() - Method in interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfiguration
-
Get the parallelism to be used.
- getParameter() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the
Parameter
for this context. - getParent() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the parent extension context, if available.
- getParent() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getParent() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the parent of this descriptor, if available.
- getParent(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
Get the parent of the supplied
TestIdentifier
. - getParentId() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of this identifier's parent, if available.
- getPath() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- getPath() - Method in class org.junit.platform.engine.discovery.FileSelector
- getPosition() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
-
Get the
FilePosition
, if available. - getPosition() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- getPosition() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
Get the
FilePosition
, if available. - getPostDiscoveryFilters() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the
PostDiscoveryFilters
for this request. - getRawConfigurationParameter(String) - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- getRawConfigurationParameter(String) - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- getRawConfigurationParameter(String) - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- getRawPath() - Method in class org.junit.platform.engine.discovery.DirectorySelector
-
Get the selected directory as a raw path.
- getRawPath() - Method in class org.junit.platform.engine.discovery.FileSelector
-
Get the selected file as a raw path.
- getReason() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Get the reason why the container or test should be enabled or disabled, if available.
- getReason() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- getReason() - Method in class org.junit.platform.engine.FilterResult
-
Get the reason why the filtered object should be included or excluded, if available.
- getReason() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Get the reason that execution of the context should be skipped, if available.
- getReportsDir() - Method in class org.junit.platform.console.options.CommandLineOptions
- getRequiredTestClass() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required
Class
associated with the current test or container. - getRequiredTestInstance() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required test instance associated with the current test or container.
- getRequiredTestInstances() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required test instances associated with the current test or container.
- getRequiredTestMethod() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required
Method
associated with the current test or container. - getResourceLock() - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService.TestTask
-
Get the resource lock of this task.
- getReversedExtensions(Class<E>) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistry
-
Get all
Extensions
of the specified type that are present in this registry or one of its ancestors, in reverse order. - getRoot() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the root
ExtensionContext
. - getRoots() - Method in class org.junit.platform.launcher.TestPlan
-
Get the root
TestIdentifiers
for this test plan. - getRootTestDescriptor() - Method in class org.junit.platform.engine.ExecutionRequest
-
Get the root
TestDescriptor
of the engine that processes this request. - getSegments() - Method in class org.junit.platform.engine.UniqueId
-
Get the immutable list of segments that make up this
UniqueId
. - getSelectedClasses() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedClasspathEntries() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedClasspathResources() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedDirectories() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedFiles() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedMethods() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedModules() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedPackages() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectedUris() - Method in class org.junit.platform.console.options.CommandLineOptions
- getSelectors() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Returns the selectors contained by this resolution.
- getSelectorsByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
Get the
DiscoverySelectors
for this request, filtered by a particular type. - getShort(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
Short
, performing automatic type conversion as necessary. - getShort(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getSource() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- getSource() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getSource() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the source of the test or container described by this descriptor, if available.
- getSource() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the source of the represented test or container, if available.
- getSources() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
-
Get an immutable list of the sources stored in this
CompositeTestSource
. - getStatus() - Method in class org.junit.platform.engine.TestExecutionResult
-
Get the status of this result.
- getStore(ExtensionContext.Namespace) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
ExtensionContext.Store
for the suppliedExtensionContext.Namespace
. - getString(int) - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get the value of the argument at the given index as a
String
, performing automatic type conversion as necessary. - getString(int) - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- getSummary() - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
-
Get the summary generated by this listener.
- getTags() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the set of all tags for the current test or container.
- getTags() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the set of all tags for the current test or container.
- getTags() - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- getTags() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getTags() - Method in class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
- getTags() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getTags() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the set of tags associated with this descriptor.
- getTags() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the set of tags associated with the represented test or container.
- getTags() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- getTarget() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the target on which the
Executable
that declares theParameter
for this context will be invoked, if available. - getTarget() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the target object of this invocation context, if available.
- getTargetClass() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the target class of this invocation context.
- getTestClass() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
Class
associated with the current test or container, if available. - getTestClass() - Method in interface org.junit.jupiter.api.extension.TestInstanceFactoryContext
-
Get the test class for this context.
- getTestClass() - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the test class for this context.
- getTestClass() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the
Class
associated with the current test or container, if available. - getTestClass() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getTestDescriptor() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Get the contained
TestDescriptor
. - getTestExecutionSummary() - Method in class org.junit.platform.console.ConsoleLauncherExecutionResult
- getTestIdentifier() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary.Failure
-
Get the identifier of the failed test or container.
- getTestIdentifier(String) - Method in class org.junit.platform.launcher.TestPlan
-
Get the
TestIdentifier
with the supplied unique ID. - getTestInstance() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the test instance associated with the current test or container, if available.
- getTestInstance() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getTestInstanceLifecycle() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
TestInstance.Lifecycle
of the test instance associated with the current test or container, if available. - getTestInstanceLifecycle() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getTestInstances() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the test instances associated with the current test or container, if available.
- getTestInstances() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getTestInstances(ExtensionRegistry, ExtensionRegistrar) - Method in interface org.junit.jupiter.engine.execution.TestInstancesProvider
- getTestInstances(MutableExtensionRegistry) - Method in interface org.junit.jupiter.engine.execution.TestInstancesProvider
- getTestInstancesProvider() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getTestMethod() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
Method
associated with the current test, if available. - getTestMethod() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the
Method
associated with the current test or container, if available. - getTestMethod() - Method in class org.junit.jupiter.engine.descriptor.DynamicExtensionContext
- getTestMethod() - Method in class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
- getTestRule() - Method in interface org.junit.jupiter.migrationsupport.rules.member.TestRuleAnnotatedMember
- getTestsAbortedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests aborted.
- getTestsFailedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests that failed.
- getTestsFoundCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests found.
- getTestSourceUri() - Method in class org.junit.jupiter.api.DynamicNode
-
Get the custom test source
URI
of thisDynamicNode
. - getTestsSkippedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests skipped.
- getTestsStartedCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests started.
- getTestsSucceededCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the number of tests that succeeded.
- getTheme() - Method in class org.junit.platform.console.options.CommandLineOptions
- getThrowable() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Get the first
Throwable
collected by thisThrowableCollector
. - getThrowable() - Method in class org.junit.platform.engine.TestExecutionResult
-
Get the throwable that caused this result, if available.
- getThrowableCollector() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- getTimeFinished() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the timestamp (in milliseconds) when the test plan finished.
- getTimestamp() - Method in class org.junit.platform.engine.reporting.ReportEntry
-
Get the timestamp for when this
ReportEntry
was created. - getTimeStarted() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the timestamp (in milliseconds) when the test plan started.
- getTotalFailureCount() - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Get the total number of failed containers and failed tests.
- getTotalRepetitions() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the total number of repetitions of the corresponding
@RepeatedTest
method. - getType() - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- getType() - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- getType() - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- getType() - Method in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- getType() - Method in class org.junit.platform.engine.support.descriptor.EngineDescriptor
-
Returns
TestDescriptor.Type.CONTAINER
. - getType() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine the
TestDescriptor.Type
of this descriptor. - getType() - Method in class org.junit.platform.engine.UniqueId.Segment
-
Get the type of this segment.
- getType() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the underlying descriptor type.
- getType() - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- getUniqueId() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the unique ID of the current test or container.
- getUniqueId() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
-
Get the selected
UniqueId
. - getUniqueId() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- getUniqueId() - Method in interface org.junit.platform.engine.TestDescriptor
-
Get the unique identifier (UID) for this descriptor.
- getUniqueId() - Method in class org.junit.platform.launcher.TestIdentifier
-
Get the unique ID of the represented test or container.
- getUri() - Method in class org.junit.platform.engine.discovery.UriSelector
-
Get the selected
URI
. - getUri() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- getUri() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- getUri() - Method in interface org.junit.platform.engine.support.descriptor.UriSource
-
Get the
URI
that represents this source. - getValue() - Method in class org.junit.platform.engine.UniqueId.Segment
-
Get the value of this segment.
- getVersion() - Method in interface org.junit.platform.engine.TestEngine
-
Get the version of this test engine.
- getWrapperType(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Get the wrapper type for the supplied primitive type.
- GLOBAL - Static variable in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
-
The default, global namespace which allows access to stored data from all extensions.
H
- handleAfterAllMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwable
that was thrown during execution of a@AfterAll
lifecycle method. - handleAfterEachMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwable
that was thrown during execution of a@AfterEach
lifecycle method. - handleBeforeAllMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwable
that was thrown during execution of a@BeforeAll
lifecycle method. - handleBeforeEachMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwable
that was thrown during execution of a@BeforeEach
lifecycle method. - handleTestExecutionException(Throwable) - Method in class org.junit.jupiter.migrationsupport.rules.adapter.ExpectedExceptionAdapter
- handleTestExecutionException(Throwable) - Method in interface org.junit.jupiter.migrationsupport.rules.adapter.GenericBeforeAndAfterAdvice
- handleTestExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
-
Handle the supplied
throwable
. - handleTestExecutionException(ExtensionContext, Throwable) - Method in class org.junit.jupiter.migrationsupport.rules.ExpectedExceptionSupport
- hasExplicitSelectors() - Method in class org.junit.platform.console.options.CommandLineOptions
- hashCode() - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
- hashCode() - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- hashCode() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ClassSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- hashCode() - Method in class org.junit.platform.engine.discovery.FileSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.MethodSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.ModuleSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.PackageSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- hashCode() - Method in class org.junit.platform.engine.discovery.UriSelector
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- hashCode() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- hashCode() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- hashCode() - Method in class org.junit.platform.engine.TestTag
- hashCode() - Method in class org.junit.platform.engine.UniqueId
- hashCode() - Method in class org.junit.platform.engine.UniqueId.Segment
- hashCode() - Method in class org.junit.platform.launcher.TestIdentifier
- hasPrefix(UniqueId) - Method in class org.junit.platform.engine.UniqueId
-
Determine if the supplied
UniqueId
is a prefix for thisUniqueId
. - HierarchicalTestEngine<C extends EngineExecutionContext> - Class in org.junit.platform.engine.support.hierarchical
-
Abstract base class for all
TestEngine
implementations that wish to organize test suites hierarchically based on theNode
abstraction. - HierarchicalTestEngine() - Constructor for class org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine
- HierarchicalTestExecutorService - Interface in org.junit.platform.engine.support.hierarchical
-
A closeable service that executes test tasks.
- HierarchicalTestExecutorService.TestTask - Interface in org.junit.platform.engine.support.hierarchical
-
An executable task that represents a single test or container.
- HierarchyTraversalMode - Enum in org.junit.platform.commons.support
-
Modes in which a hierarchy can be traversed — for example, when searching for methods or fields within a class hierarchy.
I
- ifFailure(Consumer<Exception>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a failure, call the suppliedConsumer
with the contained exception; otherwise, do nothing. - ifSuccess(Consumer<V>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a success, call the suppliedConsumer
with the contained value; otherwise, do nothing. - IgnoreCondition - Class in org.junit.jupiter.migrationsupport.conditions
-
ExecutionCondition
that supports JUnit 4's@Ignore
annotation. - IgnoreCondition() - Constructor for class org.junit.jupiter.migrationsupport.conditions.IgnoreCondition
- INCLUDE - org.junit.jupiter.params.provider.EnumSource.Mode
-
Select only those enum constants whose names are supplied via the
EnumSource.names()
attribute. - includeClassNamePatterns(String...) - Static method in interface org.junit.platform.engine.discovery.ClassNameFilter
-
Create a new include
ClassNameFilter
based on the supplied patterns. - IncludeClassNamePatterns - Annotation Type in org.junit.platform.suite.api
-
@IncludeClassNamePatterns
specifies regular expressions that are used to match against fully qualified class names when running a test suite on the JUnit Platform. - included() - Method in class org.junit.platform.engine.FilterResult
- included(String) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating included results.
- includedIf(boolean) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating filter results based on the condition given.
- includedIf(boolean, Supplier<String>, Supplier<String>) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating filter results based on the condition given.
- includeEngines(String...) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new include
EngineFilter
based on the supplied engine IDs. - includeEngines(List<String>) - Static method in class org.junit.platform.launcher.EngineFilter
-
Create a new include
EngineFilter
based on the supplied engine IDs. - IncludeEngines - Annotation Type in org.junit.platform.suite.api
-
@IncludeEngines
specifies the IDs ofTestEngines
to be included when running a test suite on the JUnit Platform. - includePackageNames(String...) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new include
PackageNameFilter
based on the supplied package names. - includePackageNames(List<String>) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
Create a new include
PackageNameFilter
based on the supplied package names. - IncludePackages - Annotation Type in org.junit.platform.suite.api
-
@IncludePackages
specifies the packages to be included when running a test suite on the JUnit Platform. - includeTags(String...) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an include filter based on the supplied tag expressions.
- includeTags(List<String>) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an include filter based on the supplied tag expressions.
- IncludeTags - Annotation Type in org.junit.platform.suite.api
-
@IncludeTags
specifies the tags or tag expressions to be included when running a test suite on the JUnit Platform. - INDEX_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.params.ParameterizedTest
-
Placeholder for the current invocation index of a
@ParameterizedTest
method (1-based):{index}
- info(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at info level. - info(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at info level. - initialize(AnnotatedElement, T) - Static method in class org.junit.jupiter.params.support.AnnotationConsumerInitializer
- INSTANCE - Static variable in class org.junit.jupiter.params.converter.DefaultArgumentConverter
- instantiateTestClass(Optional<TestInstances>, ExtensionRegistry, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- instantiateTestClass(JupiterEngineExecutionContext, ExtensionRegistry, ExtensionRegistrar, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- instantiateTestClass(JupiterEngineExecutionContext, ExtensionRegistry, ExtensionRegistrar, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
- instantiateTestClass(JupiterEngineExecutionContext, ExtensionRegistry, ExtensionRegistrar, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
- interceptAfterAllMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of an
@AfterAll
method. - interceptAfterEachMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of an
@AfterEach
method. - interceptBeforeAllMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@BeforeAll
method. - interceptBeforeEachMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@BeforeEach
method. - interceptDynamicTest(InvocationInterceptor.Invocation<Void>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
DynamicTest
. - interceptTestClassConstructor(InvocationInterceptor.Invocation<T>, ReflectiveInvocationContext<Constructor<T>>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a test class constructor.
- interceptTestFactoryMethod(InvocationInterceptor.Invocation<T>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@TestFactory
method. - interceptTestMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@Test
method. - interceptTestTemplateMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@TestTemplate
method. - ints() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
int
values to use as sources of arguments; must not be empty. - InvocationInterceptor - Interface in org.junit.jupiter.api.extension
-
InvocationInterceptor
defines the API forExtensions
that wish to intercept calls to test code. - InvocationInterceptor.Invocation<T> - Interface in org.junit.jupiter.api.extension
-
An invocation that returns a result and may throw a
Throwable
. - InvocationInterceptorChain - Class in org.junit.jupiter.engine.execution
- InvocationInterceptorChain() - Constructor for class org.junit.jupiter.engine.execution.InvocationInterceptorChain
- InvocationInterceptorChain.InterceptorCall<T> - Interface in org.junit.jupiter.engine.execution
- InvocationInterceptorChain.VoidInterceptorCall - Interface in org.junit.jupiter.engine.execution
- invoke(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node.Invocation
-
Invoke this invocation with the supplied context.
- invoke(Constructor<T>, Optional<Object>, ExtensionContext, ExtensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<Constructor<T>, T>) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.
- invoke(Method, Object, ExtensionContext, ExtensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<Method, T>) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied
static
method with dynamic parameter resolution. - invoke(InvocationInterceptor.Invocation<T>, ExtensionRegistry, InvocationInterceptorChain.InterceptorCall<T>) - Method in class org.junit.jupiter.engine.execution.InvocationInterceptorChain
- invokeAfterEachMethod(ExtensionContext, ExtensionRegistry) - Method in interface org.junit.jupiter.engine.execution.AfterEachMethodAdapter
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in class org.junit.platform.engine.support.hierarchical.ForkJoinPoolHierarchicalTestExecutorService
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in interface org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutorService
-
Invoke all supplied test tasks and block until their execution has finished.
- invokeAll(List<? extends HierarchicalTestExecutorService.TestTask>) - Method in class org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService
- invokeBeforeEachMethod(ExtensionContext, ExtensionRegistry) - Method in interface org.junit.jupiter.engine.execution.BeforeEachMethodAdapter
- invokeMethod(Method, Object, Object...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Invoke the supplied method, making it accessible if necessary and masking any checked exception as an unchecked exception.
- invokeMethod(Method, Object, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- invokeTestMethod(JupiterEngineExecutionContext, Node.DynamicTestExecutor) - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- invokeTestMethod(JupiterEngineExecutionContext, Node.DynamicTestExecutor) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- isAbstract(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
abstract
. - isAbstract(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isAbstract(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
abstract
. - isAbstract(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isAnnotated(Class<? extends Annotation>) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Determine if an annotation of
annotationType
is either present or meta-present on theParameter
for this context. - isAnnotated(Class<? extends Annotation>) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Determine if an annotation of
annotationType
is either present or meta-present on theMethod
for this descriptor. - isAnnotated(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Determine if an annotation of
annotationType
is either present or meta-present on the suppliedelement
. - isAnnotated(AnnotatedElement, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Determine if an annotation of
annotationType
is either present or meta-present on the suppliedelement
. - isAnnotated(Optional<? extends AnnotatedElement>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.support.AnnotationSupport
-
Determine if an annotation of
annotationType
is either present or meta-present on the supplied optionalelement
. - isAnnotated(Optional<? extends AnnotatedElement>, Class<? extends Annotation>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Determine if an annotation of
annotationType
is either present or meta-present on the supplied optionalelement
. - isAnsiColorOutputDisabled() - Method in class org.junit.platform.console.options.CommandLineOptions
- isArray(Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied object is an array.
- isAssignableTo(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied object can be assigned to the supplied target type for the purpose of reflective method invocations.
- isBannerDisabled() - Method in class org.junit.platform.console.options.CommandLineOptions
- isBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
-
Determine if the supplied
String
is blank (i.e.,null
or consisting only of whitespace characters). - isContainer() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor describes a container.
- isContainer() - Method in enum org.junit.platform.engine.TestDescriptor.Type
- isContainer() - Method in class org.junit.platform.launcher.TestIdentifier
-
Determine if this identifier represents a container.
- isCurrentOs() - Method in enum org.junit.jupiter.api.condition.OS
- isCurrentVersion() - Method in enum org.junit.jupiter.api.condition.JRE
- isDisabled() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Whether the container or test should be disabled.
- isDisplayHelp() - Method in class org.junit.platform.console.options.CommandLineOptions
- isEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Determine if this
ThrowableCollector
is empty (i.e., has not collected anyThrowables
). - isExact() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Whether this match is exact.
- isExtensionAutoDetectionEnabled() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- isExtensionAutoDetectionEnabled() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- isExtensionAutoDetectionEnabled() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- isFailIfNoTests() - Method in class org.junit.platform.console.options.CommandLineOptions
- isFinal(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
final
. - isFinal(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isFinal(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
final
. - isFinal(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isInnerClass(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied class is an inner class (i.e., a non-static member class).
- IsInnerClass - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a class is a non-private inner class (i.e., a non-static nested class).
- IsInnerClass() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsInnerClass
- isJavaPlatformModuleSystemAvailable() - Static method in class org.junit.platform.commons.util.ModuleUtils
-
Determine if the current Java runtime supports the Java Platform Module System.
- isMethodPresent(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isMultidimensionalArray(Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if the supplied object is a multidimensional array.
- IsNestedTestClass - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a class is a JUnit Jupiter
@Nested
test class. - IsNestedTestClass() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsNestedTestClass
- isNotBlank(String) - Static method in class org.junit.platform.commons.util.StringUtils
- isNotEmpty() - Method in class org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
Determine if this
ThrowableCollector
is not empty (i.e., has collected at least oneThrowable
). - isNotFinal(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
final
. - isNotFinal(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotFinal(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
final
. - isNotFinal(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotPrivate(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
private
. - isNotPrivate(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotPrivate(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
private
. - isNotPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotStatic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is not
static
. - isNotStatic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isNotStatic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is not
static
. - isNotStatic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isParallelExecutionEnabled() - Method in class org.junit.jupiter.engine.config.CachingJupiterConfiguration
- isParallelExecutionEnabled() - Method in class org.junit.jupiter.engine.config.DefaultJupiterConfiguration
- isParallelExecutionEnabled() - Method in interface org.junit.jupiter.engine.config.JupiterConfiguration
- IsPotentialTestContainer - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a class is a potential top-level JUnit Jupiter test container, even if it does not contain tests.
- IsPotentialTestContainer() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer
- isPrivate(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
private
. - isPrivate(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPrivate(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
private
. - isPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPublic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
public
. - isPublic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isPublic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
public
. - isPublic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isResolved() - Method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Whether this resolution contains matches or selectors.
- isRoot() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor is a root descriptor.
- isScanClasspath() - Method in class org.junit.platform.console.options.CommandLineOptions
- isScanModulepath() - Method in class org.junit.platform.console.options.CommandLineOptions
- isSkipped() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Whether execution of the context should be skipped.
- isStatic(Class<?>) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied class is
static
. - isStatic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isStatic(Member) - Static method in class org.junit.platform.commons.support.ModifierSupport
-
Determine if the supplied member is
static
. - isStatic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- isTest() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor describes a test.
- isTest() - Method in enum org.junit.platform.engine.TestDescriptor.Type
- isTest() - Method in class org.junit.platform.launcher.TestIdentifier
-
Determine if this identifier represents a test.
- IsTestClassWithTests - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a class is a JUnit Jupiter test class containing executable tests, test factories, test templates, or nested tests.
- IsTestClassWithTests() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests
- isTestEngineAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if test engines should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - isTestExecutionListenerAutoRegistrationEnabled() - Method in interface org.junit.platform.launcher.core.LauncherConfig
-
Determine if test execution listeners should be discovered at runtime using the
ServiceLoader
mechanism and automatically registered. - IsTestFactoryMethod - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a method is a JUnit Jupiter
@TestFactory
method. - IsTestFactoryMethod() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod
- IsTestMethod - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a method is a JUnit Jupiter
@Test
method. - IsTestMethod() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsTestMethod
- isTestOrTestFactoryOrTestTemplateMethod - Static variable in class org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests
- IsTestTemplateMethod - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a method is a JUnit Jupiter
@TestTemplate
method. - IsTestTemplateMethod() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod
- isValid(String) - Static method in class org.junit.platform.engine.TestTag
-
Determine if the supplied tag name is valid with regard to the supported syntax for tags.
J
- JAVA_10 - org.junit.jupiter.api.condition.JRE
-
Java 10.
- JAVA_11 - org.junit.jupiter.api.condition.JRE
-
Java 11.
- JAVA_12 - org.junit.jupiter.api.condition.JRE
-
Java 12.
- JAVA_13 - org.junit.jupiter.api.condition.JRE
-
Java 13.
- JAVA_14 - org.junit.jupiter.api.condition.JRE
-
Java 14.
- JAVA_8 - org.junit.jupiter.api.condition.JRE
-
Java 8.
- JAVA_9 - org.junit.jupiter.api.condition.JRE
-
Java 9.
- JavaTimeConversionPattern - Annotation Type in org.junit.jupiter.params.converter
-
@JavaTimeConversionPattern
is an annotation that allows a date/time conversion pattern to be specified on a parameter of a@ParameterizedTest
method. - JRE - Enum in org.junit.jupiter.api.condition
-
Enumeration of Java Runtime Environment (JRE) versions.
- JUnitException - Exception in org.junit.platform.commons
-
Base class for all
RuntimeExceptions
thrown by JUnit. - JUnitException(String) - Constructor for exception org.junit.platform.commons.JUnitException
- JUnitException(String, Throwable) - Constructor for exception org.junit.platform.commons.JUnitException
- JUnitPlatform - Class in org.junit.platform.runner
-
JUnit 4 based
Runner
which runs tests on the JUnit Platform in a JUnit 4 environment. - JUnitPlatform(Class<?>) - Constructor for class org.junit.platform.runner.JUnitPlatform
- JupiterConfiguration - Interface in org.junit.jupiter.engine.config
- JupiterEngineDescriptor - Class in org.junit.jupiter.engine.descriptor
- JupiterEngineDescriptor(UniqueId, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- JupiterEngineExecutionContext - Class in org.junit.jupiter.engine.execution
- JupiterEngineExecutionContext(EngineExecutionListener, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
- JupiterEngineExecutionContext.Builder - Class in org.junit.jupiter.engine.execution
- JupiterTestDescriptor - Class in org.junit.jupiter.engine.descriptor
- JupiterTestEngine - Class in org.junit.jupiter.engine
-
The JUnit Jupiter
TestEngine
. - JupiterTestEngine() - Constructor for class org.junit.jupiter.engine.JupiterTestEngine
- JupiterThrowableCollectorFactory - Class in org.junit.jupiter.engine.support
-
Factory for creating
ThrowableCollectors
within the JUnit Jupiter test engine. - JupiterThrowableCollectorFactory() - Constructor for class org.junit.jupiter.engine.support.JupiterThrowableCollectorFactory
L
- Launcher - Interface in org.junit.platform.launcher
-
The
Launcher
API is the main entry point for client code that wishes to discover and execute tests using one or more test engines. - LauncherConfig - Interface in org.junit.platform.launcher.core
-
LauncherConfig
defines the configuration API for creatingLauncher
instances via theLauncherFactory
. - LauncherConfig.Builder - Class in org.junit.platform.launcher.core
-
Builder API for
LauncherConfig
. - LauncherConstants - Class in org.junit.platform.launcher
-
Collection of constants related to
Launcher
. - LauncherDiscoveryRequest - Interface in org.junit.platform.launcher
-
LauncherDiscoveryRequest
extends theEngineDiscoveryRequest
API with additional filters that are applied by theLauncher
itself. - LauncherDiscoveryRequestBuilder - Class in org.junit.platform.launcher.core
-
The
LauncherDiscoveryRequestBuilder
provides a light-weight DSL for generating aLauncherDiscoveryRequest
. - LauncherDiscoveryRequestBuilder() - Constructor for class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
- LauncherFactory - Class in org.junit.platform.launcher.core
-
Factory for creating
Launcher
instances by invokingLauncherFactory.create()
orLauncherFactory.create(LauncherConfig)
. - LegacyReportingUtils - Class in org.junit.platform.launcher.listeners
-
Utility methods for dealing with legacy reporting infrastructure, such as reporting systems built on the Ant-based XML reporting format for JUnit 4.
- LegacyXmlReportGeneratingListener - Class in org.junit.platform.reporting.legacy.xml
-
LegacyXmlReportGeneratingListener
is aTestExecutionListener
that generates a separate XML report for each root in theTestPlan
. - LegacyXmlReportGeneratingListener(Path, PrintWriter) - Constructor for class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- lifecycle - Variable in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- LifecycleMethodExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
-
LifecycleMethodExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during the execution of@BeforeAll
,@BeforeEach
,@AfterEach
, and@AfterAll
lifecycle methods. - lineSeparator() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The line separator to use when reading the CSV files; must consist of 1 or 2 characters.
- LINUX - org.junit.jupiter.api.condition.OS
-
Linux-based operating system.
- loadClass(String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Deprecated.Please use
ReflectionSupport.tryToLoadClass(String)
instead. - loadClass(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToLoadClass(String)
instead. - loadClass(String, ClassLoader) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Deprecated.Please use
ReflectionUtils.tryToLoadClass(String, ClassLoader)
instead. - LOCALE - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the default locale for the current instance of the JVM.
- Logger - Interface in org.junit.platform.commons.logging
-
The
Logger
API serves as a simple logging facade forjava.util.logging
(JUL). - LoggerFactory - Class in org.junit.platform.commons.logging
-
Factory for the
Logger
facade for JUL. - LoggingListener - Class in org.junit.platform.launcher.listeners
-
Simple
TestExecutionListener
for logging informational messages for all events via aBiConsumer
that consumesThrowable
andSupplier<String>
. - LogRecordListener - Class in org.junit.platform.commons.logging
-
LogRecordListener
is only intended for testing purposes within JUnit's own test suite. - LogRecordListener() - Constructor for class org.junit.platform.commons.logging.LogRecordListener
- logRecordSubmitted(LogRecord) - Method in class org.junit.platform.commons.logging.LogRecordListener
-
Inform the listener of a
LogRecord
that was submitted to JUL for processing. - LONG_DISPLAY_NAME - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
-
Long display name pattern for a repeated test: "{displayName} :: repetition {currentRepetition} of {totalRepetitions}"
- longs() - Method in annotation type org.junit.jupiter.params.provider.ValueSource
-
The
long
values to use as sources of arguments; must not be empty.
M
- MAC - org.junit.jupiter.api.condition.OS
-
Apple Macintosh operating system (e.g., macOS).
- main(String...) - Static method in class org.junit.platform.console.ConsoleLauncher
- makeAccessible(T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- match(Class<?>) - Method in class org.junit.platform.commons.util.ClassFilter
-
Test class using the stored class predicate.
- match(String) - Method in class org.junit.platform.commons.util.ClassFilter
-
Test name using the stored name predicate.
- match(SelectorResolver.Match) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating a resolution that contains the supplied
Match
. - MATCH_ALL - org.junit.jupiter.params.provider.EnumSource.Mode
-
Select only those enum constants whose names match all patterns supplied via the
EnumSource.names()
attribute. - MATCH_ANY - org.junit.jupiter.params.provider.EnumSource.Mode
-
Select only those enum constants whose names match any pattern supplied via the
EnumSource.names()
attribute. - matches() - Method in annotation type org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
-
A regular expression that will be used to match against the retrieved value of the
DisabledIfEnvironmentVariable.named()
environment variable. - matches() - Method in annotation type org.junit.jupiter.api.condition.DisabledIfSystemProperty
-
A regular expression that will be used to match against the retrieved value of the
DisabledIfSystemProperty.named()
JVM system property. - matches() - Method in annotation type org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
-
A regular expression that will be used to match against the retrieved value of the
EnabledIfEnvironmentVariable.named()
environment variable. - matches() - Method in annotation type org.junit.jupiter.api.condition.EnabledIfSystemProperty
-
A regular expression that will be used to match against the retrieved value of the
EnabledIfSystemProperty.named()
JVM system property. - matches(Set<SelectorResolver.Match>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating a resolution that contains the supplied
Matches
. - mayRegisterTests() - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- mayRegisterTests() - Method in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- mayRegisterTests() - Method in interface org.junit.platform.engine.TestDescriptor
-
Determine if this descriptor may register dynamic tests during execution.
- MethodBasedTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
Base class for
TestDescriptors
based on Java methods. - MethodDescriptor - Interface in org.junit.jupiter.api
-
MethodDescriptor
encapsulates functionality for a givenMethod
. - MethodOrderer - Interface in org.junit.jupiter.api
-
MethodOrderer
defines the API for ordering the test methods in a given test class. - MethodOrderer.Alphanumeric - Class in org.junit.jupiter.api
-
MethodOrderer
that sorts methods alphanumerically based on their names usingString.compareTo(String)
. - MethodOrderer.OrderAnnotation - Class in org.junit.jupiter.api
-
MethodOrderer
that sorts methods based on the@Order
annotation. - MethodOrderer.Random - Class in org.junit.jupiter.api
-
MethodOrderer
that orders methods pseudo-randomly. - MethodOrdererContext - Interface in org.junit.jupiter.api
-
MethodOrdererContext
encapsulates the context in which aMethodOrderer
will be invoked. - MethodSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aMethod
or a combination of class name, method name, and parameter types so thatTestEngines
can discover tests or containers based on methods. - MethodSource - Class in org.junit.platform.engine.support.descriptor
-
Method based
TestSource
. - MethodSource - Annotation Type in org.junit.jupiter.params.provider
-
@MethodSource
is anArgumentsSource
which provides access to values returned from factory methods of the class in which this annotation is declared or from static factory methods in external classes referenced by fully qualified method name. - mode() - Method in annotation type org.junit.jupiter.api.parallel.ResourceLock
-
The resource access mode.
- mode() - Method in annotation type org.junit.jupiter.params.provider.EnumSource
-
The enum constant selection mode.
- ModifierSupport - Class in org.junit.platform.commons.support
-
ModifierSupport
provides static utility methods for working with class and member modifiers — for example, to determine if a class or member is declared aspublic
,private
,abstract
,static
, etc. - ModuleSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a module name so thatTestEngines
can discover tests or containers based on modules. - ModuleUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with
java.lang.Module
and friends. - ModuleUtils() - Constructor for class org.junit.platform.commons.util.ModuleUtils
- MutableExtensionRegistry - Class in org.junit.jupiter.engine.extension
-
Default, mutable implementation of
ExtensionRegistry
.
N
- name() - Method in annotation type org.junit.jupiter.api.RepeatedTest
-
The display name for each repetition of the repeated test.
- name() - Method in annotation type org.junit.jupiter.params.ParameterizedTest
-
The display name to be used for individual invocations of the parameterized test; never blank or consisting solely of whitespace.
- named() - Method in annotation type org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
-
The name of the environment variable to retrieve.
- named() - Method in annotation type org.junit.jupiter.api.condition.DisabledIfSystemProperty
-
The name of the JVM system property to retrieve.
- named() - Method in annotation type org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
-
The name of the environment variable to retrieve.
- named() - Method in annotation type org.junit.jupiter.api.condition.EnabledIfSystemProperty
-
The name of the JVM system property to retrieve.
- names() - Method in annotation type org.junit.jupiter.params.provider.EnumSource
-
The names of enum constants to provide, or regular expressions to select the names of enum constants to provide.
- NamespaceAwareStore - Class in org.junit.jupiter.engine.execution
- NamespaceAwareStore(ExtensionValuesStore, ExtensionContext.Namespace) - Constructor for class org.junit.jupiter.engine.execution.NamespaceAwareStore
- Nested - Annotation Type in org.junit.jupiter.api
-
@Nested
is used to signal that the annotated class is a nested, non-static test class (i.e., an inner class) that can share setup and state with an instance of its enclosing class. - NestedClassTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for tests based on nested (but not static) Java classes. - NestedClassTestDescriptor(UniqueId, Class<?>, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
- newInstance(Class<T>, Object...) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Create a new instance of the specified
Class
by invoking the constructor whose argument list matches the types of the supplied arguments. - newInstance(Class<T>, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- newInstance(Constructor<T>, Object...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Create a new instance of type
T
by invoking the supplied constructor with the supplied arguments. - Node<C extends EngineExecutionContext> - Interface in org.junit.platform.engine.support.hierarchical
-
A node within the execution hierarchy.
- Node.DynamicTestExecutor - Interface in org.junit.platform.engine.support.hierarchical
-
Executor for additional, dynamic test descriptors discovered during execution of a
Node
. - Node.ExecutionMode - Enum in org.junit.platform.engine.support.hierarchical
-
Supported execution modes for parallel execution.
- Node.Invocation<C extends EngineExecutionContext> - Interface in org.junit.platform.engine.support.hierarchical
-
Represents an invocation that runs with the supplied context.
- Node.SkipResult - Class in org.junit.platform.engine.support.hierarchical
-
The result of determining whether the execution of a given
context
should be skipped. - nodeFinished(C, TestDescriptor, TestExecutionResult) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Callback invoked when the execution of this node has finished.
- nodeFinished(JupiterEngineExecutionContext, TestDescriptor, TestExecutionResult) - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
-
Override
TestMethodTestDescriptor.nodeFinished(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.TestExecutionResult)
as a no-op, since theTestWatcher
API is not supported for@TestFactory
containers. - nodeFinished(JupiterEngineExecutionContext, TestDescriptor, TestExecutionResult) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
-
Invoke
testSuccessful()
,testAborted()
, ortestFailed()
on each registeredTestWatcher
according to the status of the suppliedTestExecutionResult
, in reverse registration order. - nodeSkipped(C, TestDescriptor, Node.SkipResult) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Callback invoked when the execution of this node has been skipped.
- nodeSkipped(JupiterEngineExecutionContext, TestDescriptor, Node.SkipResult) - Method in class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
-
Override
TestMethodTestDescriptor.nodeSkipped(org.junit.jupiter.engine.execution.JupiterEngineExecutionContext, org.junit.platform.engine.TestDescriptor, org.junit.platform.engine.support.hierarchical.Node.SkipResult)
as a no-op, since theTestWatcher
API is not supported for@TestFactory
containers. - nodeSkipped(JupiterEngineExecutionContext, TestDescriptor, Node.SkipResult) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
-
Invoke
TestWatcher.testDisabled(ExtensionContext, Optional)
on each registeredTestWatcher
, in registration order. - NONE - org.junit.platform.console.options.Details
-
No test plan execution details are printed.
- notBlank(String, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
String
is not blank. - notBlank(String, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
String
is not blank. - notEmpty(T[], String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array is neither
null
nor empty. - notEmpty(T[], Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied array is neither
null
nor empty. - notEmpty(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Collection
is neithernull
nor empty. - notEmpty(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Collection
is neithernull
nor empty. - notNull(T, String) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Object
is notnull
. - notNull(T, Supplier<String>) - Static method in class org.junit.platform.commons.util.Preconditions
-
Assert that the supplied
Object
is notnull
. - NullAndEmptySource - Annotation Type in org.junit.jupiter.params.provider
-
@NullAndEmptySource
is a composed annotation that combines the functionality of@NullSource
and@EmptySource
. - nullSafeToString(Class<?>) - Static method in class org.junit.platform.commons.util.ClassUtils
-
Get the fully qualified name of the supplied class.
- nullSafeToString(Class<?>...) - Static method in class org.junit.platform.commons.support.ClassSupport
-
Generate a comma-separated list of fully qualified class names for the supplied classes.
- nullSafeToString(Class<?>...) - Static method in class org.junit.platform.commons.util.ClassUtils
-
Generate a comma-separated list of fully qualified class names for the supplied classes.
- nullSafeToString(Object) - Static method in class org.junit.platform.commons.util.StringUtils
-
Convert the supplied
Object
to aString
using the following algorithm. - nullSafeToString(Function<? super Class<?>, ? extends String>, Class<?>...) - Static method in class org.junit.platform.commons.support.ClassSupport
-
Generate a comma-separated list of mapped values for the supplied classes.
- nullSafeToString(Function<? super Class<?>, ? extends String>, Class<?>...) - Static method in class org.junit.platform.commons.util.ClassUtils
-
Generate a comma-separated list of mapped values for the supplied classes.
- NullSource - Annotation Type in org.junit.jupiter.params.provider
-
@NullSource
is anArgumentsSource
which provides a singlenull
argument to the annotated@ParameterizedTest
method. - numLinesToSkip() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The number of lines to skip when reading the CSV files.
O
- of(Object) - Static method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- of(Object...) - Static method in interface org.junit.jupiter.params.provider.Arguments
-
Factory method for creating an instance of
Arguments
based on the suppliedarguments
. - of(Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ClassFilter
-
Create a
ClassFilter
instance that accepts all names but filters classes. - of(Predicate<String>, Predicate<Class<?>>) - Static method in class org.junit.platform.commons.util.ClassFilter
-
Create a
ClassFilter
instance that filters by names and classes. - of(TestInstances, Object) - Static method in class org.junit.jupiter.engine.execution.DefaultTestInstances
- ofVoid(InvocationInterceptorChain.VoidInterceptorCall) - Static method in interface org.junit.jupiter.engine.execution.InvocationInterceptorChain.InterceptorCall
- ofVoidMethod(ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall) - Static method in interface org.junit.jupiter.engine.execution.ExecutableInvoker.ReflectiveInterceptorCall
- OpenTest4JAwareThrowableCollector - Class in org.junit.platform.engine.support.hierarchical
-
Specialization of
ThrowableCollector
that treats instances ofTestAbortedException
as aborting. - OpenTest4JAwareThrowableCollector() - Constructor for class org.junit.platform.engine.support.hierarchical.OpenTest4JAwareThrowableCollector
- Order - Annotation Type in org.junit.jupiter.api
-
@Order
is an annotation that is used to configure the order in which the annotated element (i.e., field or method) should be evaluated or executed relative to other elements of the same category. - OrderAnnotation() - Constructor for class org.junit.jupiter.api.MethodOrderer.OrderAnnotation
- orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.Alphanumeric
-
Sort the methods encapsulated in the supplied
MethodOrdererContext
alphanumerically based on their names and formal parameter lists. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.OrderAnnotation
-
Sort the methods encapsulated in the supplied
MethodOrdererContext
based on the@Order
annotation. - orderMethods(MethodOrdererContext) - Method in interface org.junit.jupiter.api.MethodOrderer
-
Order the methods encapsulated in the supplied
MethodOrdererContext
. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.Random
-
Order the methods encapsulated in the supplied
MethodOrdererContext
pseudo-randomly. - orElse(Supplier<Try<V>>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a failure, call the supplied supplier and return the resultingTry
; if thisTry
is a success, do nothing. - orElseTry(Callable<V>) - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a failure, call the supplied action and return a new successful or failedTry
depending on the action's outcome; if thisTry
is a success, do nothing. - org.junit.jupiter.api - package org.junit.jupiter.api
-
JUnit Jupiter API for writing tests.
- org.junit.jupiter.api.condition - package org.junit.jupiter.api.condition
-
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
- org.junit.jupiter.api.extension - package org.junit.jupiter.api.extension
-
JUnit Jupiter API for writing extensions.
- org.junit.jupiter.api.function - package org.junit.jupiter.api.function
-
Functional interfaces used within JUnit Jupiter.
- org.junit.jupiter.api.io - package org.junit.jupiter.api.io
-
IO-related support in JUnit Jupiter.
- org.junit.jupiter.api.parallel - package org.junit.jupiter.api.parallel
-
JUnit Jupiter API for influencing parallel test execution.
- org.junit.jupiter.engine - package org.junit.jupiter.engine
-
Core package for the JUnit Jupiter test engine.
- org.junit.jupiter.engine.config - package org.junit.jupiter.engine.config
-
Configuration specific to the JUnit Jupiter test engine.
- org.junit.jupiter.engine.descriptor - package org.junit.jupiter.engine.descriptor
-
Test descriptors used within the JUnit Jupiter test engine.
- org.junit.jupiter.engine.discovery - package org.junit.jupiter.engine.discovery
-
Internal classes for test discovery within the JUnit Jupiter test engine.
- org.junit.jupiter.engine.discovery.predicates - package org.junit.jupiter.engine.discovery.predicates
-
Internal predicate classes used by test discovery within the JUnit Jupiter test engine.
- org.junit.jupiter.engine.execution - package org.junit.jupiter.engine.execution
-
Internal classes for test execution within the JUnit Jupiter test engine.
- org.junit.jupiter.engine.extension - package org.junit.jupiter.engine.extension
-
Test extensions specific to the JUnit Jupiter test engine.
- org.junit.jupiter.engine.script - package org.junit.jupiter.engine.script
-
Scripting support specific to the JUnit Jupiter test engine.
- org.junit.jupiter.engine.support - package org.junit.jupiter.engine.support
-
Internal support classes for the JUnit Jupiter test engine.
- org.junit.jupiter.migrationsupport - package org.junit.jupiter.migrationsupport
-
Support for migrating from JUnit 4 to JUnit Jupiter.
- org.junit.jupiter.migrationsupport.conditions - package org.junit.jupiter.migrationsupport.conditions
-
Extensions which provide support for conditional test execution features of JUnit 4 (e.g., the
@Ignore
annotation) within JUnit Jupiter. - org.junit.jupiter.migrationsupport.rules - package org.junit.jupiter.migrationsupport.rules
-
Extensions which provide (limited) support for JUnit 4 rules within JUnit Jupiter.
- org.junit.jupiter.migrationsupport.rules.adapter - package org.junit.jupiter.migrationsupport.rules.adapter
-
Simple wrappers for JUnit 4 rules to overcome visibility limitations of the JUnit 4 implementations.
- org.junit.jupiter.migrationsupport.rules.member - package org.junit.jupiter.migrationsupport.rules.member
-
Abstractions for members which can be targets of JUnit 4 rule annotations.
- org.junit.jupiter.params - package org.junit.jupiter.params
-
JUnit Jupiter extension for parameterized tests.
- org.junit.jupiter.params.aggregator - package org.junit.jupiter.params.aggregator
- org.junit.jupiter.params.converter - package org.junit.jupiter.params.converter
-
ArgumentConverter
implementations and the corresponding@ConvertWith
annotation. - org.junit.jupiter.params.provider - package org.junit.jupiter.params.provider
-
ArgumentsProvider
implementations and their correspondingArgumentsSource
annotations. - org.junit.jupiter.params.support - package org.junit.jupiter.params.support
-
Support classes for building providers and converters for arguments.
- org.junit.platform.commons - package org.junit.platform.commons
-
Common APIs and support utilities for the JUnit Platform.
- org.junit.platform.commons.annotation - package org.junit.platform.commons.annotation
-
Common annotations for the JUnit Platform.
- org.junit.platform.commons.function - package org.junit.platform.commons.function
-
Maintained functional interfaces and support classes.
- org.junit.platform.commons.logging - package org.junit.platform.commons.logging
-
Internal logging package.
- org.junit.platform.commons.support - package org.junit.platform.commons.support
-
Maintained common support APIs provided by the JUnit Platform.
- org.junit.platform.commons.util - package org.junit.platform.commons.util
-
Internal common utilities for JUnit.
- org.junit.platform.console - package org.junit.platform.console
-
Support for launching the JUnit Platform from the console.
- org.junit.platform.console.options - package org.junit.platform.console.options
-
Configuration options for JUnit's console launcher.
- org.junit.platform.console.tasks - package org.junit.platform.console.tasks
-
Internal execution tasks for JUnit's console launcher.
- org.junit.platform.engine - package org.junit.platform.engine
-
Public API for test engines.
- org.junit.platform.engine.discovery - package org.junit.platform.engine.discovery
- org.junit.platform.engine.reporting - package org.junit.platform.engine.reporting
-
Classes used by test engines to report additional data to execution listeners.
- org.junit.platform.engine.support.config - package org.junit.platform.engine.support.config
-
ConfigurationParameters
-related support classes intended to be used by test engine implementations. - org.junit.platform.engine.support.descriptor - package org.junit.platform.engine.support.descriptor
-
TestDescriptor
-related support classes intended to be used by test engine implementations and clients of the launcher. - org.junit.platform.engine.support.discovery - package org.junit.platform.engine.support.discovery
-
Configurable test discovery implementation that can be reused by different test engines.
- org.junit.platform.engine.support.filter - package org.junit.platform.engine.support.filter
-
Filter
-related support classes intended to be used by test engine implementations. - org.junit.platform.engine.support.hierarchical - package org.junit.platform.engine.support.hierarchical
-
Support classes and base implementation for any
TestEngine
that wishes to organize test suites hierarchically based on theNode
abstraction. - org.junit.platform.launcher - package org.junit.platform.launcher
-
Public API for configuring and launching test plans.
- org.junit.platform.launcher.core - package org.junit.platform.launcher.core
-
Core support classes for the
Launcher
including theLauncherFactory
and theLauncherDiscoveryRequestBuilder
. - org.junit.platform.launcher.listeners - package org.junit.platform.launcher.listeners
-
Common
TestExecutionListener
implementations and related support classes for theLauncher
. - org.junit.platform.launcher.tagexpression - package org.junit.platform.launcher.tagexpression
-
The tag expression language parser and related support classes.
- org.junit.platform.reporting - package org.junit.platform.reporting
-
JUnit Platform Reporting.
- org.junit.platform.reporting.legacy - package org.junit.platform.reporting.legacy
-
Support for legacy reporting formats.
- org.junit.platform.reporting.legacy.xml - package org.junit.platform.reporting.legacy.xml
-
Support for generating XML reports using a format which is compatible with the de facto standard for JUnit 4 based test reports that was made popular by the Ant build system.
- org.junit.platform.runner - package org.junit.platform.runner
-
Runner
and annotations for configuring and executing tests on the JUnit Platform in a JUnit 4 environment. - org.junit.platform.suite.api - package org.junit.platform.suite.api
-
Annotations for configuring a test suite on the JUnit Platform.
- org.junit.vintage.engine - package org.junit.vintage.engine
-
Core package for the JUnit Vintage test engine.
- org.junit.vintage.engine.descriptor - package org.junit.vintage.engine.descriptor
-
Test descriptors used within the JUnit Vintage test engine.
- org.junit.vintage.engine.discovery - package org.junit.vintage.engine.discovery
-
Internal classes for test discovery within the JUnit Vintage test engine.
- org.junit.vintage.engine.execution - package org.junit.vintage.engine.execution
-
Internal classes for test execution within the JUnit Vintage test engine.
- org.junit.vintage.engine.support - package org.junit.vintage.engine.support
-
Internal support classes for test discovery and execution within the JUnit Vintage test engine.
- OS - Enum in org.junit.jupiter.api.condition
-
Enumeration of common operating systems used for testing Java applications.
- OTHER - org.junit.jupiter.api.condition.JRE
-
A JRE version other than
JRE.JAVA_8
,JRE.JAVA_9
,JRE.JAVA_10
,JRE.JAVA_11
,JRE.JAVA_12
,JRE.JAVA_13
, orJRE.JAVA_14
. - OTHER - org.junit.jupiter.api.condition.OS
P
- PackageNameFilter - Interface in org.junit.platform.engine.discovery
-
DiscoveryFilter
that is applied to the name of aPackage
. - PackageSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects a package name so thatTestEngines
can discover tests or containers based on packages. - PackageSource - Class in org.junit.platform.engine.support.descriptor
-
Package based
TestSource
. - PackageUtils - Class in org.junit.platform.commons.util
-
Collection of utilities for working with packages.
- PARALLEL_CONFIG_CUSTOM_CLASS_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to specify the fully qualified class name of the
ParallelExecutionConfigurationStrategy
to be used for thecustom
configuration strategy: "junit.jupiter.execution.parallel.config.custom.class" - PARALLEL_CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the factor to be multiplied with the number of available processors/cores to determine the desired parallelism for the
dynamic
configuration strategy: "junit.jupiter.execution.parallel.config.dynamic.factor" - PARALLEL_CONFIG_FIXED_PARALLELISM_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to set the desired parallelism for the
fixed
configuration strategy: "junit.jupiter.execution.parallel.config.fixed.parallelism" - PARALLEL_CONFIG_STRATEGY_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to select the
ParallelExecutionConfigurationStrategy
: "junit.jupiter.execution.parallel.config.strategy" - PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME - Static variable in interface org.junit.jupiter.engine.config.JupiterConfiguration
- PARALLEL_EXECUTION_ENABLED_PROPERTY_NAME - Static variable in class org.junit.jupiter.engine.Constants
-
Property name used to enable parallel test execution: "junit.jupiter.execution.parallel.enabled"
- ParallelExecutionConfiguration - Interface in org.junit.platform.engine.support.hierarchical
-
Configuration to use for parallel test execution.
- ParallelExecutionConfigurationStrategy - Interface in org.junit.platform.engine.support.hierarchical
-
A strategy to use for configuring parallel test execution.
- ParameterContext - Interface in org.junit.jupiter.api.extension
-
ParameterContext
encapsulates the context in which anExecutable
will be invoked for a givenParameter
. - ParameterizedTest - Annotation Type in org.junit.jupiter.params
-
@ParameterizedTest
is used to signal that the annotated method is a parameterized test method. - ParameterResolutionException - Exception in org.junit.jupiter.api.extension
-
Thrown if an error is encountered in the configuration or execution of a
ParameterResolver
. - ParameterResolutionException(String) - Constructor for exception org.junit.jupiter.api.extension.ParameterResolutionException
- ParameterResolutionException(String, Throwable) - Constructor for exception org.junit.jupiter.api.extension.ParameterResolutionException
- ParameterResolver - Interface in org.junit.jupiter.api.extension
-
ParameterResolver
defines the API forExtensions
that wish to dynamically resolve arguments for parameters at runtime. - parameterTypesAsString(Method) - Static method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a string representation of the formal parameters of the supplied method, consisting of the simple names of the parameter types, separated by commas, and enclosed in parentheses.
- parse(String) - Static method in class org.junit.platform.engine.UniqueId
-
Parse a
UniqueId
from the supplied string representation using the default format. - parse(String...) - Method in interface org.junit.platform.console.options.CommandLineOptionsParser
- parse(String...) - Method in class org.junit.platform.console.options.PicocliCommandLineOptionsParser
- parseFrom(String) - Static method in interface org.junit.platform.launcher.tagexpression.TagExpression
-
Attempt to parse a
TagExpression
from the supplied tag expression string. - parseFullyQualifiedMethodName(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Parse the supplied fully qualified method name into a 3-element
String[]
with the following content. - ParseResult - Interface in org.junit.platform.launcher.tagexpression
-
The result of attempting to parse a
TagExpression
. - partial(TestDescriptor) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating a partial match without any children.
- partial(TestDescriptor, Supplier<Set<? extends DiscoverySelector>>) - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Match
-
Factory for creating a partial match with potential children.
- PER_CLASS - org.junit.jupiter.api.TestInstance.Lifecycle
-
When using this mode, a new test instance will be created once per test class.
- PER_METHOD - org.junit.jupiter.api.TestInstance.Lifecycle
-
When using this mode, a new test instance will be created for each test method, test factory method, or test template method.
- PicocliCommandLineOptionsParser - Class in org.junit.platform.console.options
- PicocliCommandLineOptionsParser() - Constructor for class org.junit.platform.console.options.PicocliCommandLineOptionsParser
- populateNewExtensionRegistry(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- populateNewExtensionRegistry(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- PostDiscoveryFilter - Interface in org.junit.platform.launcher
-
A
PostDiscoveryFilter
is applied toTestDescriptors
after test discovery. - postProcessTestInstance(Object, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
-
Callback for post-processing the supplied test instance.
- Preconditions - Class in org.junit.platform.commons.util
-
Collection of utilities for asserting preconditions for method and constructor arguments.
- PreconditionViolationException - Exception in org.junit.platform.commons
-
Thrown if a precondition is violated.
- PreconditionViolationException - Exception in org.junit.platform.commons.util
-
Deprecated.Use PreconditionViolationException instead.
- PreconditionViolationException(String) - Constructor for exception org.junit.platform.commons.PreconditionViolationException
- PreconditionViolationException(String) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
-
Deprecated.
- PreconditionViolationException(String, Throwable) - Constructor for exception org.junit.platform.commons.PreconditionViolationException
- PreconditionViolationException(String, Throwable) - Constructor for exception org.junit.platform.commons.util.PreconditionViolationException
-
Deprecated.
- PrefixedConfigurationParameters - Class in org.junit.platform.engine.support.config
-
View of
ConfigurationParameters
that applies a supplied prefix to all queries. - PrefixedConfigurationParameters(ConfigurationParameters, String) - Constructor for class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
-
Create a new view of the supplied
ConfigurationParameters
that applies the supplied prefix to all queries. - prepare(C) - Method in interface org.junit.platform.engine.support.hierarchical.Node
-
Prepare the supplied
context
prior to execution. - prepare(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- prepare(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineDescriptor
- prepare(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
-
Must be overridden and return a new context so cleanUp() does not accidentally close the parent context.
- prepare(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- prepare(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- printFailuresTo(PrintWriter) - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Print failed containers and tests, including sources and exception messages, to the supplied
PrintWriter
. - printHelp(Writer) - Method in interface org.junit.platform.console.options.CommandLineOptionsParser
- printHelp(Writer) - Method in class org.junit.platform.console.options.PicocliCommandLineOptionsParser
- printTo(PrintWriter) - Method in interface org.junit.platform.launcher.listeners.TestExecutionSummary
-
Print this summary to the supplied
PrintWriter
. - proceed() - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
-
Proceed with this invocation.
- provideArguments(ExtensionContext) - Method in interface org.junit.jupiter.params.provider.ArgumentsProvider
- provideTestTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
Provide invocation contexts for the test template method represented by the supplied
context
. - prune() - Method in interface org.junit.platform.engine.TestDescriptor
-
Remove this descriptor from the hierarchy unless it is a root or contains tests.
- prune() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- publishEntry(String) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied value as a report entry.
- publishEntry(String, String) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied key-value pair as a report entry.
- publishEntry(Map<String, String>) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied map of key-value pairs as a report entry.
- publishReportEntry(String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish the specified value to be consumed by an
org.junit.platform.engine.EngineExecutionListener
in order to supply additional information to the reporting infrastructure. - publishReportEntry(String, String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish the specified key-value pair to be consumed by an
org.junit.platform.engine.EngineExecutionListener
in order to supply additional information to the reporting infrastructure. - publishReportEntry(Map<String, String>) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish a map of key-value pairs to be consumed by an
org.junit.platform.engine.EngineExecutionListener
in order to supply additional information to the reporting infrastructure. - put(Object, Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Store a
value
for later retrieval under the suppliedkey
. - put(Object, Object) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
R
- Random() - Constructor for class org.junit.jupiter.api.MethodOrderer.Random
- 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 - org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require only read access to the resource.
- READ - org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Require only read access to the resource.
- READ_WRITE - org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require read and write access to the resource.
- READ_WRITE - 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.Please use
ReflectionUtils.tryToReadFieldValue(Class, String, Object)
instead. - 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() - Method in annotation type org.junit.jupiter.api.condition.DisabledIf
-
Deprecated.The reason this annotated test class or test method is enabled or disabled.
- reason() - Method in annotation type org.junit.jupiter.api.condition.EnabledIf
-
Deprecated.The reason this annotated test class or test method is enabled or disabled.
- 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 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(Extension, Object) - Method in interface org.junit.jupiter.engine.extension.ExtensionRegistrar
-
Register the supplied
Extension
, without checking if an extension of that type already exists. - registerExtension(Extension, Object) - Method in class org.junit.jupiter.engine.extension.MutableExtensionRegistry
- RegisterExtension - Annotation Type in org.junit.jupiter.api.extension
-
@RegisterExtension
is used to register anExtension
via a field in a test class. - 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.
- 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 Type 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 - 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
- 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(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
- request() - Static method in class org.junit.platform.launcher.core.LauncherDiscoveryRequestBuilder
-
Create a new
LauncherDiscoveryRequestBuilder
. - 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(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(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
. - resolveParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Resolve an argument for the
Parameter
in the suppliedParameterContext
for the suppliedExtensionContext
. - resolveSelectors(EngineDiscoveryRequest, JupiterEngineDescriptor) - Method in class org.junit.jupiter.engine.discovery.DiscoverySelectorResolver
- ResourceAccessMode - Enum 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 Type 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 Type in org.junit.jupiter.api.parallel
-
@ResourceLocks
is a container for one or more@ResourceLock
declarations. - resources() - Method in annotation type org.junit.jupiter.params.provider.CsvFileSource
-
The CSV classpath resources to use as the sources of arguments; must not be empty.
- Resources - Class in org.junit.jupiter.api.parallel
-
Common resource names for synchronizing test execution.
- rethrowIfBlacklisted(Throwable) - Static method in class org.junit.platform.commons.util.BlacklistedExceptions
-
Rethrow the supplied
exception
if it is blacklisted. - returnsVoid(Method) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- root() - Method in enum 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(RunNotifier) - Method in class org.junit.platform.runner.JUnitPlatform
- 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
S
- SAME_THREAD - org.junit.jupiter.api.parallel.ExecutionMode
-
Force execution in same thread as the parent node.
- SAME_THREAD - 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
- Script - Class in org.junit.jupiter.engine.script
-
Deprecated.
- Script(Annotation, String, String, String) - Constructor for class org.junit.jupiter.engine.script.Script
-
Deprecated.
- Script(Class<? extends Annotation>, String, String, String, String) - Constructor for class org.junit.jupiter.engine.script.Script
-
Deprecated.
- ScriptAccessor - Interface in org.junit.jupiter.engine.script
-
Deprecated.
- ScriptAccessor.ConfigurationParameterAccessor - Class in org.junit.jupiter.engine.script
-
Deprecated.
- ScriptAccessor.EnvironmentVariableAccessor - Class in org.junit.jupiter.engine.script
-
Deprecated.
- ScriptAccessor.SystemPropertyAccessor - Class in org.junit.jupiter.engine.script
-
Deprecated.
- ScriptEvaluationException - Exception in org.junit.jupiter.api.extension
-
Thrown if an error is encountered while evaluating a script-based
ExecutionCondition
. - ScriptEvaluationException(String) - Constructor for exception org.junit.jupiter.api.extension.ScriptEvaluationException
- ScriptEvaluationException(String, Throwable) - Constructor for exception org.junit.jupiter.api.extension.ScriptEvaluationException
- ScriptExecutionManager - Class in org.junit.jupiter.engine.script
-
Deprecated.
- ScriptExecutionManager() - Constructor for class org.junit.jupiter.engine.script.ScriptExecutionManager
-
Deprecated.
- 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
- selectClass(Class<?>) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClassSelector
for the suppliedClass
. - selectClass(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
ClassSelector
for the supplied class name. - SelectClasses - Annotation Type 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. - 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). - 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(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
FileSelector
for the supplied file path. - 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, String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
MethodSelector
for the suppliedClass
, method name, and method parameter types. - 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. - 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 method parameter types. - 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. - 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 of the 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 of the supplied
selectors
to the request. - selectPackage(String) - Static method in class org.junit.platform.engine.discovery.DiscoverySelectors
-
Create a
PackageSelector
for the supplied package name. - SelectPackages - Annotation Type in org.junit.platform.suite.api
-
@SelectPackages
specifies the names of packages to select when running a test suite on the JUnit Platform. - 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
. - setAdditionalClasspathEntries(List<Path>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setAnsiColorOutputDisabled(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setBannerDisabled(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setConfigurationParameters(Map<String, String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setDefaultChildExecutionMode(Node.ExecutionMode) - Method in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- setDetails(Details) - Method in class org.junit.platform.console.options.CommandLineOptions
- setDisplayHelp(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setExcludedClassNamePatterns(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setExcludedEngines(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setExcludedPackages(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setExcludedTagExpressions(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setFailIfNoTests(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setIncludedClassNamePatterns(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setIncludedEngines(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setIncludedPackages(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setIncludedTagExpressions(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- 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.
- setReportsDir(Path) - Method in class org.junit.platform.console.options.CommandLineOptions
- setScanClasspath(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setScanModulepath(boolean) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedClasses(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedClasspathEntries(List<Path>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedClasspathResources(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedDirectories(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedFiles(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedMethods(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedModules(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedPackages(List<String>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setSelectedUris(List<URI>) - Method in class org.junit.platform.console.options.CommandLineOptions
- setTheme(Theme) - Method in class org.junit.platform.console.options.CommandLineOptions
- SHORT_DISPLAY_NAME - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
-
Short display name pattern for a repeated test: "repetition {currentRepetition} of {totalRepetitions}"
- shorts() - Method in annotation type 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
- SimpleArgumentConverter - Class in org.junit.jupiter.params.converter
-
SimpleArgumentConverter
is an abstract base class forArgumentConverter
implementations. - 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
-
Get the number of configuration parameters stored directly in this
ConfigurationParameters
. - size() - Method in class org.junit.platform.engine.support.config.PrefixedConfigurationParameters
- skip(String) - Static method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
-
Factory for creating skipped results.
- skipped() - Method in enum org.junit.platform.console.options.Theme
- SOLARIS - org.junit.jupiter.api.condition.OS
-
Oracle Solaris operating system.
- Standard() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.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?)$"
- status(TestExecutionResult) - Method in enum org.junit.platform.console.options.Theme
- 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(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<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 supplied generators 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. - strings() - Method in annotation type 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. - 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
- success(V) - Static method in class org.junit.platform.commons.function.Try
-
Convert the supplied value into a succeeded
Try
. - successful() - Method in enum 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 - org.junit.platform.engine.TestExecutionResult.Status
-
Indicates that the execution of a test or container was successful.
- SuiteDisplayName - Annotation Type 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. - SUMMARY - 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
- 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
. - 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
. - SYSTEM_ERR - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard error stream of the current process.
- SYSTEM_OUT - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard output stream of the current process.
- SYSTEM_PROPERTIES - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents Java's system properties.
- SystemPropertyAccessor() - Constructor for class org.junit.jupiter.engine.script.ScriptAccessor.SystemPropertyAccessor
-
Deprecated.
T
- Tag - Annotation Type in org.junit.jupiter.api
-
@Tag
is a repeatable annotation that is used to declare a tag for the annotated test class or test method. - tagExpression() - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the contained
TagExpression
, if any. - TagExpression - Interface in org.junit.platform.launcher.tagexpression
-
A tag expression can be evaluated against a collection of tags to determine if they match the expression.
- tagExpressionOrThrow(Function<String, RuntimeException>) - Method in interface org.junit.platform.launcher.tagexpression.ParseResult
-
Return the parsed
TagExpression
or throw an exception with the contained parse error. - TagFilter - Class in org.junit.platform.launcher
-
Factory methods for creating
PostDiscoveryFilters
based on included and excluded tags or tag expressions. - tags - Variable in class org.junit.jupiter.engine.descriptor.ClassBasedTestDescriptor
- Tags - Annotation Type in org.junit.jupiter.api
-
@Tags
is a container for one or more@Tag
declarations. - TempDir - Annotation Type in org.junit.jupiter.api.io
- test(Class<?>) - Method in class org.junit.jupiter.engine.discovery.predicates.IsInnerClass
- test(Class<?>) - Method in class org.junit.jupiter.engine.discovery.predicates.IsNestedTestClass
- test(Class<?>) - Method in class org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer
- test(Class<?>) - Method in class org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests
- test(Class<?>) - Method in class org.junit.platform.commons.util.ClassFilter
- test(UniqueId) - Method in class org.junit.jupiter.engine.descriptor.DynamicDescendantFilter
- Test - Annotation Type in org.junit.jupiter.api
-
@Test
is used to signal that the annotated method is a test method. - TEST - org.junit.platform.engine.TestDescriptor.Type
-
Denotes that the
TestDescriptor
is for a test. - Testable - Annotation Type in org.junit.platform.commons.annotation
-
@Testable
is used to signal to IDEs and tooling vendors that the annotated or meta-annotated element is testable. - testAborted(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has been aborted.
- TestDescriptor - Interface in org.junit.platform.engine
-
Mutable descriptor for a test or container that has been discovered by a
TestEngine
. - TestDescriptor.Type - Enum in org.junit.platform.engine
-
Supported types for
TestDescriptors
. - TestDescriptor.Visitor - Interface in org.junit.platform.engine
-
Visitor for the tree-like
TestDescriptor
structure. - testDisabled(ExtensionContext, Optional<String>) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a disabled test has been skipped.
- TestEngine - Interface in org.junit.platform.engine
-
A
TestEngine
facilitates discovery and execution of tests for a particular programming model. - TestExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
-
TestExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during test execution. - TestExecutionListener - Interface in org.junit.platform.launcher
-
Register a concrete implementation of this interface with a
Launcher
to be notified of events that occur during test execution. - TestExecutionResult - Class in org.junit.platform.engine
-
TestExecutionResult
encapsulates the result of executing a single test or container. - TestExecutionResult.Status - Enum in org.junit.platform.engine
-
Status of executing a single test or container.
- TestExecutionSummary - Interface in org.junit.platform.launcher.listeners
-
Summary of test plan execution.
- TestExecutionSummary.Failure - Interface in org.junit.platform.launcher.listeners
-
Failure of a test or container.
- TestFactory - Annotation Type in org.junit.jupiter.api
-
@TestFactory
is used to signal that the annotated method is a test factory method. - TestFactoryTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for@TestFactory
methods. - TestFactoryTestDescriptor(UniqueId, Class<?>, Method, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.TestFactoryTestDescriptor
- testFailed(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has failed.
- TestIdentifier - Class in org.junit.platform.launcher
-
Immutable data transfer object that represents a test or container which is usually part of a
TestPlan
. - TestInfo - Interface in org.junit.jupiter.api
-
TestInfo
is used to inject information about the current test or container into to@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
,@BeforeEach
,@AfterEach
,@BeforeAll
, and@AfterAll
methods. - TestInstance - Annotation Type in org.junit.jupiter.api
-
@TestInstance
is a type-level annotation that is used to configure the lifecycle of test instances for the annotated test class or test interface. - TestInstance.Lifecycle - Enum in org.junit.jupiter.api
-
Enumeration of test instance lifecycle modes.
- TestInstanceFactory - Interface in org.junit.jupiter.api.extension
- TestInstanceFactoryContext - Interface in org.junit.jupiter.api.extension
-
TestInstanceFactoryContext
encapsulates the context in which a test class is to be instantiated by aTestInstanceFactory
. - TestInstanceLifecycleUtils - Class in org.junit.jupiter.engine.descriptor
-
Collection of utilities for retrieving the test instance lifecycle mode.
- TestInstancePostProcessor - Interface in org.junit.jupiter.api.extension
-
TestInstancePostProcessor
defines the API forExtensions
that wish to post-process test instances. - TestInstances - Interface in org.junit.jupiter.api.extension
-
TestInstances
encapsulates the test instances of a test. - TestInstancesProvider - Interface in org.junit.jupiter.engine.execution
- TestInstantiationException - Exception in org.junit.jupiter.api.extension
-
Thrown if an error is encountered during the execution of a
TestInstanceFactory
. - TestInstantiationException(String) - Constructor for exception org.junit.jupiter.api.extension.TestInstantiationException
- TestInstantiationException(String, Throwable) - Constructor for exception org.junit.jupiter.api.extension.TestInstantiationException
- TestMethodOrder - Annotation Type in org.junit.jupiter.api
-
@TestMethodOrder
is a type-level annotation that is used to configure aMethodOrderer
for the test methods of the annotated test class or test interface. - TestMethodTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for@Test
methods. - TestMethodTestDescriptor(UniqueId, Class<?>, Method, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
- TestPlan - Class in org.junit.platform.launcher
-
TestPlan
describes the tree of tests and containers as discovered by aLauncher
. - TestPlan(boolean) - Constructor for class org.junit.platform.launcher.TestPlan
- testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- testPlanExecutionFinished(TestPlan) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of the
TestPlan
has finished, after all tests have been executed. - testPlanExecutionFinished(TestPlan) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.launcher.listeners.LoggingListener
- testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.launcher.listeners.SummaryGeneratingListener
- testPlanExecutionStarted(TestPlan) - Method in interface org.junit.platform.launcher.TestExecutionListener
-
Called when the execution of the
TestPlan
has started, before any test has been executed. - testPlanExecutionStarted(TestPlan) - Method in class org.junit.platform.reporting.legacy.xml.LegacyXmlReportGeneratingListener
- TestReporter - Interface in org.junit.jupiter.api
-
Parameters of type
TestReporter
can be injected into@BeforeEach
and@AfterEach
lifecycle methods as well as methods annotated with@Test
,@RepeatedTest
,@ParameterizedTest
,@TestFactory
, etc. - TestRuleAnnotatedField - Class in org.junit.jupiter.migrationsupport.rules.member
- TestRuleAnnotatedField(Object, Field) - Constructor for class org.junit.jupiter.migrationsupport.rules.member.TestRuleAnnotatedField
- TestRuleAnnotatedMember - Interface in org.junit.jupiter.migrationsupport.rules.member
- TestRuleAnnotatedMethod - Class in org.junit.jupiter.migrationsupport.rules.member
- TestRuleAnnotatedMethod(Object, Method) - Constructor for class org.junit.jupiter.migrationsupport.rules.member.TestRuleAnnotatedMethod
- TestSource - Interface in org.junit.platform.engine
-
Representation of the source of a test or container used to navigate to its location by IDEs and build tools.
- testSuccessful(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has completed successfully.
- TestTag - Class in org.junit.platform.engine
-
Immutable value object for a tag that is assigned to a test or container.
- TestTemplate - Annotation Type in org.junit.jupiter.api
-
@TestTemplate
is used to signal that the annotated method is a test template method. - TestTemplateInvocationContext - Interface in org.junit.jupiter.api.extension
-
TestTemplateInvocationContext
represents the context of a single invocation of a test template. - TestTemplateInvocationContextProvider - Interface in org.junit.jupiter.api.extension
-
TestTemplateInvocationContextProvider
defines the API forExtensions
that wish to provide one or multiple contexts for the invocation of a@TestTemplate
method. - TestTemplateInvocationTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for a@TestTemplate
invocation. - TestTemplateTestDescriptor - Class in org.junit.jupiter.engine.descriptor
-
TestDescriptor
for@TestTemplate
methods. - TestTemplateTestDescriptor(UniqueId, Class<?>, Method, JupiterConfiguration) - Constructor for class org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor
- TestWatcher - Interface in org.junit.jupiter.api.extension
-
TestWatcher
defines the API forExtensions
that wish to process test results. - Theme - Enum in org.junit.platform.console.options
- ThrowableCollector - Class in org.junit.platform.engine.support.hierarchical
-
Simple component that can be used to collect one or more instances of
Throwable
. - ThrowableCollector(Predicate<? super Throwable>) - Constructor for class org.junit.platform.engine.support.hierarchical.ThrowableCollector
- ThrowableCollector.Executable - Interface in org.junit.platform.engine.support.hierarchical
-
Functional interface for an executable block of code that may throw a
Throwable
. - ThrowableCollector.Factory - Interface in org.junit.platform.engine.support.hierarchical
-
Factory for
ThrowableCollector
instances. - throwAsUncheckedException(Throwable) - Static method in class org.junit.platform.commons.util.ExceptionUtils
-
Throw the supplied
Throwable
, masked as an unchecked exception. - ThrowingConsumer<T> - Interface in org.junit.jupiter.api.function
-
ThrowingConsumer
is a functional interface that can be used to implement any generic block of code that consumes an argument and potentially throws aThrowable
. - ThrowingSupplier<T> - Interface in org.junit.jupiter.api.function
-
ThrowingSupplier
is a functional interface that can be used to implement any generic block of code that returns an object and potentially throws aThrowable
. - TIME_ZONE - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the default time zone for the current instance of the JVM.
- Timeout - Annotation Type in org.junit.jupiter.api
-
@Timeout
is used to define a timeout for a method or all testable methods within one class and its@Nested
classes. - toArray() - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get all arguments in this accessor as an array.
- toArray() - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- toExecutionMode(ExecutionMode) - Static method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
- toList() - Method in interface org.junit.jupiter.params.aggregator.ArgumentsAccessor
-
Get all arguments in this accessor as an immutable list.
- toList() - Method in class org.junit.jupiter.params.aggregator.DefaultArgumentsAccessor
- toOptional() - Method in class org.junit.platform.commons.function.Try
-
If this
Try
is a failure, return an emptyOptional
; if thisTry
is a success, wrap the contained value usingOptional.ofNullable(Object)
. - TOP_DOWN - org.junit.platform.commons.support.HierarchyTraversalMode
-
Traverse the hierarchy using top-down semantics.
- TOP_DOWN - org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Traverse the hierarchy using top-down semantics.
- toPredicate() - Method in interface org.junit.platform.engine.Filter
- toReasonString(String) - Method in class org.junit.jupiter.engine.script.Script
-
Deprecated.
- toRequest() - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- toStream(Object) - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Convert an object of one of the following supported types into a
Stream
. - toString() - Method in class org.junit.jupiter.api.DynamicNode
- toString() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
- toString() - Method in class org.junit.platform.commons.util.ToStringBuilder
- toString() - Method in enum org.junit.platform.console.options.Details
-
Return lower case
Enum.name
for easier usage in help text for available options. - toString() - Method in enum org.junit.platform.console.options.Theme
-
Return lower case
Enum.name()
for easier usage in help text for available options. - toString() - Method in class org.junit.platform.engine.discovery.ClasspathResourceSelector
- toString() - Method in class org.junit.platform.engine.discovery.ClasspathRootSelector
- toString() - Method in class org.junit.platform.engine.discovery.ClassSelector
- toString() - Method in class org.junit.platform.engine.discovery.DirectorySelector
- toString() - Method in class org.junit.platform.engine.discovery.FileSelector
- toString() - Method in class org.junit.platform.engine.discovery.MethodSelector
- toString() - Method in class org.junit.platform.engine.discovery.ModuleSelector
- toString() - Method in class org.junit.platform.engine.discovery.PackageSelector
- toString() - Method in class org.junit.platform.engine.discovery.UniqueIdSelector
- toString() - Method in class org.junit.platform.engine.discovery.UriSelector
- toString() - Method in class org.junit.platform.engine.FilterResult
- toString() - Method in class org.junit.platform.engine.reporting.ReportEntry
- toString() - Method in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
- toString() - Method in class org.junit.platform.engine.support.descriptor.ClasspathResourceSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.CompositeTestSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.DirectorySource
- toString() - Method in class org.junit.platform.engine.support.descriptor.FilePosition
- toString() - Method in class org.junit.platform.engine.support.descriptor.FileSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.MethodSource
- toString() - Method in class org.junit.platform.engine.support.descriptor.PackageSource
- toString() - Method in class org.junit.platform.engine.support.hierarchical.ExclusiveResource
- toString() - Method in class org.junit.platform.engine.support.hierarchical.Node.SkipResult
- toString() - Method in class org.junit.platform.engine.TestExecutionResult
- toString() - Method in class org.junit.platform.engine.TestTag
- toString() - Method in class org.junit.platform.engine.UniqueId.Segment
- toString() - Method in class org.junit.platform.engine.UniqueId
-
Generate the unique, formatted string representation of this
UniqueId
using the configuredUniqueIdFormat
. - toString() - Method in class org.junit.platform.launcher.EngineFilter
- toString() - Method in class org.junit.platform.launcher.TestIdentifier
- ToStringBuilder - Class in org.junit.platform.commons.util
-
Simple builder for generating strings in custom implementations of
toString()
. - ToStringBuilder(Class<?>) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
- ToStringBuilder(Object) - Constructor for class org.junit.platform.commons.util.ToStringBuilder
- TOTAL_REPETITIONS_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
-
Placeholder for the total number of repetitions of a
@RepeatedTest
method:{totalRepetitions}
- toUnmodifiableList() - Static method in class org.junit.platform.commons.util.CollectionUtils
-
Return a
Collector
that accumulates the input elements into a new unmodifiable list, in encounter order. - trace(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at trace level. - trace(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at trace level. - TREE - org.junit.platform.console.options.Details
-
Test plan execution details are rendered as a simple tree.
- Try<V> - Class in org.junit.platform.commons.function
-
A container object which may either contain a nullable value in case of success or an exception in case of failure.
- Try.Transformer<S,T> - Interface in org.junit.platform.commons.function
-
A transformer for values of type
S
to typeT
. - tryToExcludeFromRunner(Description) - Method in class org.junit.vintage.engine.descriptor.RunnerTestDescriptor
- tryToExcludeFromRunner(Description) - Method in class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- tryToGetMethod(Class<?>, String, Class<?>...) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to get the
Method
in the specified class with the specified name and parameter types. - tryToLoadClass(String) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Try to load a class by its primitive name or fully qualified name, using the default
ClassLoader
. - tryToLoadClass(String) - Static method in class org.junit.platform.commons.util.ReflectionUtils
- tryToLoadClass(String, ClassLoader) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to load a class by its primitive name or fully qualified name, using the supplied
ClassLoader
. - tryToReadFieldValue(Class<T>, String, T) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to read the value of a potentially inaccessible or nonexistent field.
- tryToReadFieldValue(Field) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Try to read the value of a potentially inaccessible static field.
- tryToReadFieldValue(Field, Object) - Static method in class org.junit.platform.commons.support.ReflectionSupport
-
Try to read the value of a potentially inaccessible field.
- tryToReadFieldValue(Field, Object) - Static method in class org.junit.platform.commons.util.ReflectionUtils
U
- UNICODE - org.junit.platform.console.options.Theme
-
Unicode (extended ASCII) characters are used to display the test execution tree.
- UniqueId - Class in org.junit.platform.engine
-
UniqueId
encapsulates the creation, parsing, and display of unique IDs forTestDescriptors
. - UniqueId.Segment - Class in org.junit.platform.engine
-
A segment of a
UniqueId
comprises a type and a value. - UniqueIdReader - Class in org.junit.vintage.engine.support
- UniqueIdReader() - Constructor for class org.junit.vintage.engine.support.UniqueIdReader
- UniqueIdSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aUniqueId
so thatTestEngines
can discover tests or containers based on unique IDs. - UniqueIdStringifier - Class in org.junit.vintage.engine.support
- UniqueIdStringifier() - Constructor for class org.junit.vintage.engine.support.UniqueIdStringifier
- unit() - Method in annotation type org.junit.jupiter.api.Timeout
-
The time unit of this timeout.
- unresolved() - Static method in class org.junit.platform.engine.support.discovery.SelectorResolver.Resolution
-
Factory for creating unresolved resolutions.
- UriSelector - Class in org.junit.platform.engine.discovery
-
A
DiscoverySelector
that selects aURI
so thatTestEngines
can discover tests or containers based on URIs. - UriSource - Interface in org.junit.platform.engine.support.descriptor
-
A
TestSource
that can be represented as aURI
. - UseTechnicalNames - Annotation Type in org.junit.platform.suite.api
-
@UseTechnicalNames
specifies that technical names should be used instead of display names when running a test suite on the JUnit Platform.
V
- value() - Method in annotation type org.junit.jupiter.api.condition.DisabledIf
-
Deprecated.The lines of the script to evaluate.
- value() - Method in annotation type org.junit.jupiter.api.condition.DisabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be disabled.
- value() - Method in annotation type org.junit.jupiter.api.condition.DisabledOnOs
-
Operating systems on which the annotated class or method should be disabled.
- value() - Method in annotation type org.junit.jupiter.api.condition.EnabledIf
-
Deprecated.The lines of the script to evaluate.
- value() - Method in annotation type org.junit.jupiter.api.condition.EnabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be enabled.
- value() - Method in annotation type org.junit.jupiter.api.condition.EnabledOnOs
-
Operating systems on which the annotated class or method should be enabled.
- value() - Method in annotation type org.junit.jupiter.api.Disabled
-
The reason this annotated test class or test method is disabled.
- value() - Method in annotation type org.junit.jupiter.api.DisplayName
-
Custom display name for the annotated class or method.
- value() - Method in annotation type org.junit.jupiter.api.DisplayNameGeneration
-
Custom display name generator.
- value() - Method in annotation type org.junit.jupiter.api.extension.ExtendWith
-
An array of one or more
Extension
classes to register. - value() - Method in annotation type org.junit.jupiter.api.extension.Extensions
-
An array of one or more
@ExtendWith
declarations. - value() - Method in annotation type org.junit.jupiter.api.Order
-
The order value for the annotated element (i.e., field or method).
- value() - Method in annotation type org.junit.jupiter.api.parallel.Execution
-
The required/preferred execution mode.
- value() - Method in annotation type org.junit.jupiter.api.parallel.ResourceLock
-
The resource key.
- value() - Method in annotation type org.junit.jupiter.api.parallel.ResourceLocks
-
An array of one or more @ResourceLock declarations.
- value() - Method in annotation type org.junit.jupiter.api.RepeatedTest
-
The number of repetitions.
- value() - Method in annotation type org.junit.jupiter.api.Tag
-
The tag.
- value() - Method in annotation type org.junit.jupiter.api.Tags
-
An array of one or more
Tags
. - value() - Method in annotation type org.junit.jupiter.api.TestInstance
-
The test instance lifecycle mode to use.
- value() - Method in annotation type org.junit.jupiter.api.TestMethodOrder
-
The
MethodOrderer
to use. - value() - Method in annotation type org.junit.jupiter.api.Timeout
-
The duration of this timeout.
- value() - Method in annotation type org.junit.jupiter.params.aggregator.AggregateWith
- value() - Method in annotation type org.junit.jupiter.params.converter.ConvertWith
-
The type of
ArgumentConverter
to use. - value() - Method in annotation type org.junit.jupiter.params.converter.JavaTimeConversionPattern
-
The date/time conversion pattern.
- value() - Method in annotation type org.junit.jupiter.params.provider.ArgumentsSource
-
The type of
ArgumentsProvider
to be used. - value() - Method in annotation type org.junit.jupiter.params.provider.ArgumentsSources
-
An array of one or more
@ArgumentsSource
annotations. - value() - Method in annotation type org.junit.jupiter.params.provider.CsvSource
-
The CSV lines to use as source of arguments; must not be empty.
- value() - Method in annotation type org.junit.jupiter.params.provider.EnumSource
-
The enum type that serves as the source of the enum constants.
- value() - Method in annotation type org.junit.jupiter.params.provider.MethodSource
-
The names of factory methods within the test class or in external classes to use as sources for arguments.
- value() - Method in annotation type org.junit.platform.suite.api.ExcludeClassNamePatterns
-
Regular expressions used to match against fully qualified class names.
- value() - Method in annotation type org.junit.platform.suite.api.ExcludeEngines
-
One or more TestEngine IDs to be excluded from the test plan.
- value() - Method in annotation type org.junit.platform.suite.api.ExcludePackages
-
One or more packages to exclude.
- value() - Method in annotation type org.junit.platform.suite.api.ExcludeTags
-
One or more tags to exclude.
- value() - Method in annotation type org.junit.platform.suite.api.IncludeClassNamePatterns
-
Regular expressions used to match against fully qualified class names.
- value() - Method in annotation type org.junit.platform.suite.api.IncludeEngines
-
One or more TestEngine IDs to be included in the test plan.
- value() - Method in annotation type org.junit.platform.suite.api.IncludePackages
-
One or more packages to include.
- value() - Method in annotation type org.junit.platform.suite.api.IncludeTags
-
One or more tags to include.
- value() - Method in annotation type org.junit.platform.suite.api.SelectClasses
-
One or more classes to select.
- value() - Method in annotation type org.junit.platform.suite.api.SelectPackages
-
One or more fully qualified package names to select.
- value() - Method in annotation type org.junit.platform.suite.api.SuiteDisplayName
-
Custom display name for the annotated class.
- valueOf(String) - Static method in enum org.junit.jupiter.api.condition.JRE
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.jupiter.api.condition.OS
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.jupiter.api.parallel.ExecutionMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.jupiter.api.parallel.ResourceAccessMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.jupiter.api.TestInstance.Lifecycle
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.jupiter.params.provider.EnumSource.Mode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.commons.support.HierarchyTraversalMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.console.options.Details
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.console.options.Theme
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.engine.TestDescriptor.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.junit.platform.engine.TestExecutionResult.Status
-
Returns the enum constant of this type with the specified name.
- valueOf(Charset) - Static method in enum org.junit.platform.console.options.Theme
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.junit.jupiter.api.condition.JRE
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.jupiter.api.condition.OS
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.jupiter.api.parallel.ExecutionMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.jupiter.api.parallel.ResourceAccessMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.jupiter.api.TestInstance.Lifecycle
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.jupiter.params.provider.EnumSource.Mode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.commons.support.HierarchyTraversalMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.commons.util.ReflectionUtils.HierarchyTraversalMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.console.options.Details
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.console.options.Theme
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.engine.support.hierarchical.ExclusiveResource.LockMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.engine.support.hierarchical.Node.ExecutionMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.engine.TestDescriptor.Type
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum org.junit.platform.engine.TestExecutionResult.Status
-
Returns an array containing the constants of this enum type, in the order they are declared.
- ValueSource - Annotation Type in org.junit.jupiter.params.provider
-
@ValueSource
is anArgumentsSource
which provides access to an array of literal values. - VERBOSE - org.junit.platform.console.options.Details
-
Combines
Details.TREE
andDetails.FLAT
modes. - VerifierAdapter - Class in org.junit.jupiter.migrationsupport.rules.adapter
- VerifierAdapter(TestRuleAnnotatedMember) - Constructor for class org.junit.jupiter.migrationsupport.rules.adapter.VerifierAdapter
- VerifierSupport - Class in org.junit.jupiter.migrationsupport.rules
-
This
Extension
provides native support for subclasses of theVerifier
rule from JUnit 4. - VerifierSupport() - Constructor for class org.junit.jupiter.migrationsupport.rules.VerifierSupport
- vertical() - Method in enum org.junit.platform.console.options.Theme
- VintageDiscoverer - Class in org.junit.vintage.engine.discovery
- VintageDiscoverer() - Constructor for class org.junit.vintage.engine.discovery.VintageDiscoverer
- VintageTestDescriptor - Class in org.junit.vintage.engine.descriptor
- VintageTestDescriptor(UniqueId, Description) - Constructor for class org.junit.vintage.engine.descriptor.VintageTestDescriptor
- VintageTestEngine - Class in org.junit.vintage.engine
-
The JUnit Vintage
TestEngine
. - VintageTestEngine() - Constructor for class org.junit.vintage.engine.VintageTestEngine
- visit(TestDescriptor) - Method in interface org.junit.platform.engine.TestDescriptor.Visitor
-
Visit a
TestDescriptor
.
W
- warn(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided
Throwable
and message from the providedmessageSupplier
at warning level. - warn(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided
messageSupplier
at warning level. - where(Function<T, V>, Predicate<? super V>) - Static method in class org.junit.platform.commons.util.FunctionUtils
-
Return a predicate that first applies the specified function and then tests the specified predicate against the result of the function.
- WINDOWS - org.junit.jupiter.api.condition.OS
-
Microsoft Windows operating system.
- withExtensionContext(ExtensionContext) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder
- withExtensionRegistry(MutableExtensionRegistry) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder
- withTestInstancesProvider(TestInstancesProvider) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder
- withThrowableCollector(ThrowableCollector) - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext.Builder
All Classes All Packages