Skip navigation links
junit-jupiter-api
A B C D E F G H I L N O P R S T V 

A

accept(T) - Method in interface org.junit.jupiter.api.function.ThrowingConsumer
Consume the supplied argument, potentially throwing an exception.
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.
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.
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.
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.
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.
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.

B

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.
beforeAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeAllCallback
Callback that is invoked once before all tests in the current container.
BeforeAllCallback - Interface in org.junit.jupiter.api.extension
BeforeAllCallback defines the API for Extensions that wish to provide additional behavior to test containers before all tests are invoked.
BeforeEach - Annotation Type in org.junit.jupiter.api
@BeforeEach is used to signal that the annotated method should be executed before each @Test method in the current test class.
beforeEach(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeEachCallback
Callback that is invoked before each test is invoked.
BeforeEachCallback - Interface in org.junit.jupiter.api.extension
BeforeEachCallback defines the API for Extensions that wish to provide additional behavior to tests before each test is invoked.
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 for Extensions that wish to provide additional behavior to tests immediately before each test is executed.

C

ConditionEvaluationResult - Class in org.junit.jupiter.api.extension
The result of evaluating an ExecutionCondition.
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.
CURRENT_REPETITION_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
Placeholder for the current repetition count of a @RepeatedTest method: {currentRepetition}

D

DEFAULT - Static variable in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
The default, global namespace which allows access to stored data from all extensions.
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.
disabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
Factory for creating disabled results.
DISPLAY_NAME_PLACEHOLDER - Static variable in annotation type org.junit.jupiter.api.RepeatedTest
Placeholder for the display name of a @RepeatedTest method: {displayName}
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.
DynamicContainer - Class in org.junit.jupiter.api
A DynamicContainer is a container generated at runtime.
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 a collection 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 a stream of dynamic nodes.
DynamicNode - Class in org.junit.jupiter.api
A DynamicNode is the abstract basis class for a container or a test case generated at runtime.
DynamicTest - Class in org.junit.jupiter.api
A DynamicTest is a test case generated at runtime.
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.

E

enabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
Factory for creating enabled results.
equals(Object) - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
 
evaluateExecutionCondition(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ExecutionCondition
Evaluate this condition for the supplied ExtensionContext.
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 a Throwable.
execute() - Method in interface org.junit.jupiter.api.function.Executable
 
ExecutionCondition - Interface in org.junit.jupiter.api.extension
ExecutionCondition defines the Extension API for programmatic, conditional test execution.
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
 
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 a ExtensionContext.Store.
ExtensionContext.Store - Interface in org.junit.jupiter.api.extension
Store provides methods for extensions to save and retrieve data.
ExtensionContextException - Exception in org.junit.jupiter.api.extension
Thrown if an error is encountered regarding the use of an ExtensionContext or ExtensionContext.Store.
ExtensionContextException(String) - Constructor for exception org.junit.jupiter.api.extension.ExtensionContextException
 
Extensions - Annotation Type in org.junit.jupiter.api.extension
@Extensions is a container for one or more @ExtendWith declarations.

F

fail(String) - Static method in class org.junit.jupiter.api.Assertions
Fails a test with the given failure message.
fail(String, Throwable) - Static method in class org.junit.jupiter.api.Assertions
Fails a test with the given failure message as well as the underlying cause.
fail(Throwable) - Static method in class org.junit.jupiter.api.Assertions
Fails a test with the given underlying cause.
fail(Supplier<String>) - Static method in class org.junit.jupiter.api.Assertions
Fails a test with the failure message retrieved from the given messageSupplier.

G

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.
getAdditionalExtensions() - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
Get the additional extensions for this invocation.
getChildren() - Method in class org.junit.jupiter.api.DynamicContainer
Get the Stream of DynamicNodes associated with this container.
getCurrentRepetition() - Method in interface org.junit.jupiter.api.RepetitionInfo
Get the current repetition of the corresponding @RepeatedTest method.
getDeclaringExecutable() - Method in interface org.junit.jupiter.api.extension.ParameterContext
Get the Executable (i.e., the Method or Constructor) that declares the Parameter for this context.
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.
getElement() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the AnnotatedElement corresponding to the current extension context, if available.
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.
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.
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.
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.
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.
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.
getRoot() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the root ExtensionContext.
getStore() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the ExtensionContext.Store for the default, global ExtensionContext.Namespace.
getStore(ExtensionContext.Namespace) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
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.
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.
getTestInstance() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the test instance associated with the current test or container, if available.
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.
getTotalRepetitions() - Method in interface org.junit.jupiter.api.RepetitionInfo
Get the total number of repetitions of the corresponding @RepeatedTest method.
getUniqueId() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the unique ID of the current test or container.

H

handleTestExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
Handle the supplied throwable.
hashCode() - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
 

I

isDisabled() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
Whether the container or test should be disabled.

L

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}"

N

Nested - Annotation Type in org.junit.jupiter.api
@Nested is used to signal that the annotated class is a nested, non-static test class.

O

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.

P

ParameterContext - Interface in org.junit.jupiter.api.extension
ParameterContext encapsulates the context in which an Executable will be invoked for a given Parameter.
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 for Extensions that wish to dynamically resolve arguments for parameters at runtime.
postProcessTestInstance(Object, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
Callback for post-processing the supplied test instance.
provideTestTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
Provide invocation contexts for the test template method represented by the supplied context.
publishEntry(Map<String, String>) - Method in interface org.junit.jupiter.api.TestReporter
Publish the supplied values as a report entry.
publishEntry(String, String) - Method in interface org.junit.jupiter.api.TestReporter
 
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.
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.
put(Object, Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
Store a value for later retrieval under the supplied key.

R

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, 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.
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.
resolveParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
Resolve an argument for the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

S

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}"
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.
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 supplied ParameterContext for the supplied ExtensionContext.
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.

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.
Tags - Annotation Type in org.junit.jupiter.api
@Tags is a container for one or more @Tag declarations.
Test - Annotation Type in org.junit.jupiter.api
@Test is used to signal that the annotated method is a test method.
TestExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
TestExecutionExceptionHandler defines the API for Extensions that wish to handle exceptions thrown during test execution.
TestFactory - Annotation Type in org.junit.jupiter.api
@TestFactory is used to signal that the annotated method is a test factory method.
TestInfo - Interface in org.junit.jupiter.api
TestInfo is used to inject information about the current test or container into to @Test, @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.
TestInstancePostProcessor - Interface in org.junit.jupiter.api.extension
TestInstancePostProcessor defines the API for Extensions that wish to post-process test instances.
TestReporter - Interface in org.junit.jupiter.api
Parameters of type TestReporter can be injected into methods of test classes annotated with @BeforeEach, @AfterEach, and @Test.
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 for Extensions that wish to provide one or multiple contexts for the invocation of a @TestTemplate method.
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 a Throwable.
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 a Throwable.
toString() - Method in class org.junit.jupiter.api.DynamicNode
 
toString() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
 
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}

V

valueOf(String) - Static method in enum org.junit.jupiter.api.TestInstance.Lifecycle
Returns the enum constant of this type with the specified name.
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.
A B C D E F G H I L N O P R S T V 
Skip navigation links
junit-jupiter-api