- aborted() - Method in enum org.junit.platform.console.options.Theme
-
- aborted(Throwable) - Static method in class org.junit.platform.engine.TestExecutionResult
-
Obtain a
TestExecutionResult
for an
aborted execution
of a test or container with the supplied
throwable
.
- AbstractTestDescriptor - Class in org.junit.platform.engine.support.descriptor
-
- AbstractTestDescriptor(UniqueId, String) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the supplied
UniqueId
and display name.
- AbstractTestDescriptor(UniqueId, String, TestSource) - Constructor for class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
Create a new
AbstractTestDescriptor
with the supplied
UniqueId
, 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(T) - Method in interface org.junit.jupiter.api.function.ThrowingConsumer
-
Consume the supplied argument, potentially throwing an exception.
- accept(TestDescriptor.Visitor) - Method in interface org.junit.platform.engine.TestDescriptor
-
Accept a visitor to the subtree starting with this descriptor.
- 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 supplied
Function
.
- add(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
- 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.
- after(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
-
- after(JupiterEngineExecutionContext) - Method in class org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
-
- 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.
- 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.
- afterAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterAllCallback
-
Callback that is invoked once after all tests in the current
container.
- AfterAllCallback - Interface in org.junit.jupiter.api.extension
-
AfterAllCallback
defines the API for
Extensions
that wish to provide additional behavior to test containers after all tests
have been invoked.
- AfterEach - Annotation Type in org.junit.jupiter.api
-
@AfterEach
is used to signal that the annotated method should be
executed after each @Test
method in
the current test class.
- 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
-
- AfterEachCallback - Interface in org.junit.jupiter.api.extension
-
AfterEachCallback
defines the API for
Extensions
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 for
Extensions
that wish to provide additional behavior to tests immediately
after each test has been executed.
- AnnotationConsumer<A extends Annotation> - Interface in org.junit.jupiter.params.support
-
@AnnotationConsumer
is a @FunctionalInterface
for consuming
annotations.
- AnnotationConsumerInitializer - Class in org.junit.jupiter.params.support
-
AnnotationConsumerInitializer
is an internal helper class for
initializing
AnnotationConsumers
.
- AnnotationSupport - Class in org.junit.platform.commons.support
-
Common annotation support.
- AnnotationUtils - Class in org.junit.platform.commons.util
-
- 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 new
UniqueId.Segment
, based
on the supplied
segmentType
and
value
, to the end of this
UniqueId
.
- apply(T) - Method in interface org.junit.platform.engine.Filter
-
Apply this filter to the supplied object.
- apply(T) - Method in class org.junit.platform.engine.support.filter.ExclusionReasonConsumingFilter
-
- apply(TestEngine) - Method in class org.junit.platform.launcher.EngineFilter
-
- apply(Description) - Method in class org.junit.vintage.engine.support.UniqueIdReader
-
- apply(Serializable) - Method in class org.junit.vintage.engine.support.UniqueIdStringifier
-
- 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 an org.junit.jupiter.params.converter.ArgumentConverter
.
- 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 - 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.
- 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
-
- ArgumentsSources - Annotation Type in org.junit.jupiter.params.provider
-
@ArgumentsSources
is a simple container for one or more
ArgumentsSource
annotations.
- assertAll(Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that all supplied executables
do not throw
exceptions.
- assertAll(Stream<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that all supplied executables
do not throw
exceptions.
- assertAll(String, Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that all supplied executables
do not throw
exceptions.
- assertAll(String, Stream<Executable>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that all supplied executables
do not throw
exceptions.
- assertArrayEquals(boolean[], boolean[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
boolean arrays are equal.
- assertArrayEquals(boolean[], boolean[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
boolean arrays are equal.
- assertArrayEquals(boolean[], boolean[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
boolean arrays are equal.
- assertArrayEquals(char[], char[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
char arrays are equal.
- assertArrayEquals(char[], char[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
char arrays are equal.
- assertArrayEquals(char[], char[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
char arrays are equal.
- assertArrayEquals(byte[], byte[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
byte arrays are equal.
- assertArrayEquals(byte[], byte[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
byte arrays are equal.
- assertArrayEquals(byte[], byte[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
byte arrays are equal.
- assertArrayEquals(short[], short[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
short arrays are equal.
- assertArrayEquals(short[], short[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
short arrays are equal.
- assertArrayEquals(short[], short[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
short arrays are equal.
- assertArrayEquals(int[], int[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
int arrays are equal.
- assertArrayEquals(int[], int[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
int arrays are equal.
- assertArrayEquals(int[], int[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
int arrays are equal.
- assertArrayEquals(long[], long[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
long arrays are equal.
- assertArrayEquals(long[], long[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
long arrays are equal.
- assertArrayEquals(long[], long[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
long arrays are equal.
- assertArrayEquals(float[], float[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal.
- assertArrayEquals(float[], float[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal.
- assertArrayEquals(float[], float[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal.
- assertArrayEquals(float[], float[], float) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal within the given delta
.
- assertArrayEquals(float[], float[], float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal within the given delta
.
- assertArrayEquals(float[], float[], float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
float arrays are equal within the given delta
.
- assertArrayEquals(double[], double[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal.
- assertArrayEquals(double[], double[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal.
- assertArrayEquals(double[], double[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal.
- assertArrayEquals(double[], double[], double) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal within the given delta
.
- assertArrayEquals(double[], double[], double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal within the given delta
.
- assertArrayEquals(double[], double[], double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
double arrays are equal within the given delta
.
- assertArrayEquals(Object[], Object[]) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
object arrays are deeply equal.
- assertArrayEquals(Object[], Object[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
object arrays are deeply equal.
- assertArrayEquals(Object[], Object[], Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
object arrays are deeply equal.
- assertEmpty() - Method in class org.junit.jupiter.engine.execution.ThrowableCollector
-
Assert that this ThrowableCollector
is empty (i.e.,
has not collected any Throwables
).
- assertEquals(short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(short, short, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(byte, byte, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(int, int) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(int, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(int, int, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(long, long, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(char, char) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(char, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(char, char, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(float, float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(float, float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(float, float, float, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(double, double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(double, double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(double, double, double, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal within the given delta
.
- assertEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertEquals(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are equal.
- assertFalse(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is not true
.
- assertFalse(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is not true
.
- assertFalse(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is not true
.
- assertFalse(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is not true
.
- assertFalse(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is not true
.
- assertFalse(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is not true
.
- Assertions - Class in org.junit.jupiter.api
-
Assertions
is a collection of utility methods that support asserting
conditions in tests.
- assertIterableEquals(Iterable<?>, Iterable<?>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
iterables are deeply equal.
- assertIterableEquals(Iterable<?>, Iterable<?>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
iterables are deeply equal.
- assertIterableEquals(Iterable<?>, Iterable<?>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
iterables are deeply equal.
- assertLinesMatch(List<String>, List<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that
expected
list of
Strings matches
actual
list.
- assertNotEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are not equal.
- assertNotEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are not equal.
- assertNotEquals(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
are not equal.
- assertNotNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is not null
.
- assertNotNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is not null
.
- assertNotNull(Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is not null
.
- assertNotSame(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
do not refer to the same object.
- assertNotSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
do not refer to the same object.
- assertNotSame(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
do not refer to the same object.
- assertNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is null
.
- assertNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is null
.
- assertNull(Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that actual
is null
.
- 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
-
Asserts that expected
and actual
refer to the same object.
- assertSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
refer to the same object.
- assertSame(Object, Object, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that expected
and actual
refer to the same object.
- assertThrows(Class<T>, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
throws
an exception of the expectedType
and returns the exception.
- assertThrows(Class<T>, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
throws
an exception of the expectedType
and returns the exception.
- assertThrows(Class<T>, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
throws
an exception of the expectedType
and returns the exception.
- assertTimeout(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeout(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeout(Duration, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeout(Duration, ThrowingSupplier<T>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTimeout(Duration, ThrowingSupplier<T>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTimeout(Duration, ThrowingSupplier<T>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, Executable, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied executable
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, ThrowingSupplier<T>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTimeoutPreemptively(Duration, ThrowingSupplier<T>, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that execution of the supplied supplier
completes before the given timeout
is exceeded.
- assertTrue(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is true
.
- assertTrue(boolean, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is true
.
- assertTrue(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is true
.
- assertTrue(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is true
.
- assertTrue(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the supplied condition
is true
.
- assertTrue(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
-
Asserts that the boolean condition supplied by booleanSupplier
is true
.
- assumeFalse(boolean) - 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(boolean, Supplier<String>) - 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(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(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(boolean, Supplier<String>) - 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(BooleanSupplier, Supplier<String>) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumingThat(BooleanSupplier, Executable) - Static method in class org.junit.jupiter.api.Assumptions
-
Execute the supplied
Executable
, but only if the supplied
assumption is valid.
- assumingThat(boolean, 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.
- GenericBeforeAndAfterAdvice - Interface in org.junit.jupiter.migrationsupport.rules.adapter
-
- get(Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Get the value that is stored under the supplied key
.
- 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() - Method in interface org.junit.jupiter.api.function.ThrowingSupplier
-
Gets a result.
- 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() - Method in interface org.junit.jupiter.params.provider.Arguments
-
Get the arguments used for an invocation of the
@ParameterizedTest
method.
- get(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the configuration parameter stored under the specified key
.
- 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.
- 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
-
- 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<?>, Function<Package, String>) - Static method in class org.junit.platform.commons.util.PackageUtils
-
Get the package attribute for the supplied type
using the
supplied function
.
- 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.
- getBoolean(String) - Method in interface org.junit.platform.engine.ConfigurationParameters
-
Get the boolean configuration parameter stored under the specified
key
.
- 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(TestIdentifier) - Method in class org.junit.platform.launcher.TestPlan
-
- getChildren(String) - Method in class org.junit.platform.launcher.TestPlan
-
Get the children of the supplied unique ID.
- 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 declaring
Class
name of this source.
- 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.
- getConfigurationParameters() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
-
- getConfigurationParameters() - Method in class org.junit.platform.console.options.CommandLineOptions
-
- getConfigurationParameters() - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
- getConfigurationParameters() - Method in class org.junit.platform.engine.ExecutionRequest
-
- 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.
- 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
-
- getDefaultClassLoader() - Static method in class org.junit.platform.commons.util.ClassLoaderUtils
-
- getDefaultValue(Annotation, String, Class<T>) - Static method in class org.junit.platform.commons.util.AnnotationUtils
-
Get the
default value of the named attribute from the supplied
Annotation
.
- 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
.
- getDisplayName() - Method in class org.junit.jupiter.api.DynamicNode
-
Get the display name of this DynamicTest
.
- getDisplayName() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the display name for the current test or container.
- getDisplayName(int) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Get the display name for this invocation.
- 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.
- 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.ClassExtensionContext
-
- getElement() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext
-
- getElement() - Method in class org.junit.jupiter.engine.descriptor.MethodExtensionContext
-
- getEngineExecutionListener() - Method in class org.junit.platform.engine.ExecutionRequest
-
- 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
-
- 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
-
- getExcludedTags() - Method in class org.junit.platform.console.options.CommandLineOptions
-
- getExecutable() - Method in class org.junit.jupiter.api.DynamicTest
-
Get the executable
code block associated with this DynamicTest
.
- 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.ClassExtensionContext
-
- getExecutionException() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext
-
- getExecutionException() - Method in class org.junit.jupiter.engine.descriptor.MethodExtensionContext
-
- getExecutionListener() - Method in class org.junit.jupiter.engine.execution.JupiterEngineExecutionContext
-
- getExitCode() - Method in class org.junit.platform.console.ConsoleLauncherExecutionResult
-
- 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 class 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
-
- getFile() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
- getFile() - Method in interface org.junit.platform.engine.support.descriptor.FileSystemSource
-
Get the source file or directory.
- getFiltersByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
- 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
-
- getIncludedTags() - 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 the
Executable
that
declares the parameter.
- getJavaClass() - Method in class org.junit.platform.engine.discovery.ClassSelector
-
- getJavaClass() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
Get the
Class
in which the selected
method is declared, or a subclass thereof.
- getJavaClass() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
- getJavaMethod() - Method in class org.junit.platform.engine.discovery.MethodSelector
-
- getKeyValuePairs() - Method in class org.junit.platform.engine.reporting.ReportEntry
-
Get an unmodifiable copy of the map of key-value pairs to be published.
- getLegacyReportingName() - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
-
- 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.
- 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.
- getLogger(Class<?>) - Static method in class org.junit.platform.commons.logging.LoggerFactory
-
Get a
Logger
for the specified class.
- 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.
- 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(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>, 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>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
-
- getOrComputeIfAbsent(K, Function<K, V>, Class<V>) - Method in class org.junit.jupiter.engine.execution.NamespaceAwareStore
-
- getOutermostInstance(Object, Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Get the outermost instance of the required type, searching recursively
through enclosing instances.
- 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.
- getParameter() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
- 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
-
- 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
-
- getPosition() - Method in class org.junit.platform.engine.support.descriptor.ClassSource
-
- getPosition() - Method in class org.junit.platform.engine.support.descriptor.FileSource
-
- getPostDiscoveryFilters() - Method in interface org.junit.platform.launcher.LauncherDiscoveryRequest
-
Get the PostDiscoveryFilters
for this request.
- 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.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 why 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.
- getRequiredTestMethod() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
required Method
associated with the current test
or container.
- getReversedExtensions(Class<E>) - Method in class 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
-
- 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
-
- getSelectedPackages() - Method in class org.junit.platform.console.options.CommandLineOptions
-
- getSelectedUris() - Method in class org.junit.platform.console.options.CommandLineOptions
-
- getSelectorsByType(Class<T>) - Method in interface org.junit.platform.engine.EngineDiscoveryRequest
-
- 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
-
- getSuites() - Method in class org.junit.platform.surefire.provider.JUnitPlatformProvider
-
- 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(AnnotatedElement) - Static method in class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
-
- 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 the
Parameter
for this context will
be invoked, if available.
- 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.TestInfo
-
Get the
Class
associated with the current test or container, if available.
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.ClassExtensionContext
-
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
-
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext
-
- getTestClass() - Method in class org.junit.jupiter.engine.descriptor.MethodExtensionContext
-
- 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
-
- 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.ClassExtensionContext
-
- getTestInstance() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext
-
- getTestInstance() - Method in class org.junit.jupiter.engine.descriptor.MethodExtensionContext
-
- getTestInstance(Optional<ExtensionRegistry>) - Method in interface org.junit.jupiter.engine.execution.TestInstanceProvider
-
- getTestInstanceProvider() - 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, if available.
- getTestMethod() - Method in class org.junit.jupiter.engine.descriptor.ClassExtensionContext
-
- getTestMethod() - Method in class org.junit.jupiter.engine.descriptor.JupiterEngineExtensionContext
-
- getTestMethod() - Method in class org.junit.jupiter.engine.descriptor.MethodExtensionContext
-
- 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.
- 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.jupiter.engine.execution.ThrowableCollector
-
Get the first
Throwable
collected by this
ThrowableCollector
.
- 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
-
- 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.ClassTestDescriptor
-
- 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
-
- getType() - Method in interface org.junit.platform.engine.TestDescriptor
-
- 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
-
- 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
-
- 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.
- includeClassNamePatterns(String...) - Static method in interface org.junit.platform.engine.discovery.ClassNameFilter
-
- 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(String) - Static method in class org.junit.platform.engine.FilterResult
-
Factory for creating included results.
- included() - Method in class org.junit.platform.engine.FilterResult
-
- 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 of
TestEngines
to be included
when running a test suite on the JUnit Platform.
- includePackageNames(String...) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
- includePackageNames(List<String>) - Static method in interface org.junit.platform.engine.discovery.PackageNameFilter
-
- 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 tags
.
- includeTags(List<String>) - Static method in class org.junit.platform.launcher.TagFilter
-
Create an include filter based on the supplied tags
.
- IncludeTags - Annotation Type in org.junit.platform.suite.api
-
@IncludeTags
specifies the
tags to be included
when running a test suite on the JUnit Platform.
- info(Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the message from the provided messageSupplier
at info level.
- info(Throwable, Supplier<String>) - Method in interface org.junit.platform.commons.logging.Logger
-
Log the provided Throwable
and 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(JupiterEngineExecutionContext, ExtensionRegistry, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.ClassTestDescriptor
-
- instantiateTestClass(JupiterEngineExecutionContext, ExtensionRegistry, ExtensionContext) - Method in class org.junit.jupiter.engine.descriptor.NestedClassTestDescriptor
-
- invoke(Constructor<T>, ExtensionContext, ExtensionRegistry) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied constructor with dynamic parameter resolution.
- invoke(Constructor<T>, Object, ExtensionContext, ExtensionRegistry) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied constructor with the supplied outer instance and
dynamic parameter resolution.
- invoke(Method, ExtensionContext, ExtensionRegistry) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied static
method with dynamic parameter resolution.
- invoke(Method, Object, ExtensionContext, ExtensionRegistry) - Method in class org.junit.jupiter.engine.execution.ExecutableInvoker
-
Invoke the supplied method on the supplied target object with dynamic parameter
resolution.
- invoke(Object) - Method in class org.junit.platform.surefire.provider.JUnitPlatformProvider
-
- invokeAfterEachMethod(ExtensionContext, ExtensionRegistry) - Method in interface org.junit.jupiter.engine.execution.AfterEachMethodAdapter
-
- 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.util.ReflectionUtils
-
- isAbstract(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
- 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 supplied
element
.
- 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 optional
element
.
- 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 supplied
element
.
- 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 type
for the purpose of reflective method invocations.
- 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.
- 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.jupiter.engine.execution.ThrowableCollector
-
Determine if this ThrowableCollector
is empty (i.e.,
has not collected any Throwables
).
- 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
-
- isInnerClass(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
- isMethodPresent(Class<?>, Predicate<Method>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
Determine if a
Method
matching the supplied
Predicate
is present within the type hierarchy of the specified class, 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.
- 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.jupiter.engine.execution.ThrowableCollector
-
Determine if this ThrowableCollector
is not empty (i.e.,
has collected at least one Throwable
).
- 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.util.ReflectionUtils
-
- isPrivate(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
- isPublic(Class<?>) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
- isPublic(Member) - Static method in class org.junit.platform.commons.util.ReflectionUtils
-
- 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
-
- IsScannableTestClass - Class in org.junit.jupiter.engine.discovery.predicates
-
Test if a class is a JUnit Jupiter test class which should be included in
package and classpath scanning.
- IsScannableTestClass() - Constructor for class org.junit.jupiter.engine.discovery.predicates.IsScannableTestClass
-
- 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.util.ReflectionUtils
-
- 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.
- IsTestFactoryMethod - Class in org.junit.jupiter.engine.discovery.predicates
-
- 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
-
- IsTestTemplateMethod - Class in org.junit.jupiter.engine.discovery.predicates
-
- 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.
- of(Object...) - Static method in interface org.junit.jupiter.params.provider.Arguments
-
Factory method for creating an instance of Arguments
based on
the supplied arguments
.
- org.junit.jupiter.api - package org.junit.jupiter.api
-
JUnit Jupiter API for writing tests.
- 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.engine - package org.junit.jupiter.engine
-
Core package for 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.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.converter - package org.junit.jupiter.params.converter
-
- org.junit.jupiter.params.provider - package org.junit.jupiter.params.provider
-
- org.junit.jupiter.params.support - package org.junit.jupiter.params.support
-
- org.junit.platform.commons - package org.junit.platform.commons
-
Internal common library of JUnit.
- org.junit.platform.commons.annotation - package org.junit.platform.commons.annotation
-
Common annotations for the JUnit Platform.
- 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.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.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 the
Node
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
-
- org.junit.platform.launcher.listeners - package org.junit.platform.launcher.listeners
-
- 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.platform.surefire.provider - package org.junit.platform.surefire.provider
-
Maven Surefire provider for 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.