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

A

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(ContainerExtensionContext) - 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(TestExtensionContext) - 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(TestExtensionContext) - 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 an AssertionError.
assertAll(String, Executable...) - Static method in class org.junit.jupiter.api.Assertions
Asserts that all supplied executables do not throw an AssertionError.
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.
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<? extends Throwable>, Executable) - Static method in class org.junit.jupiter.api.Assertions
Asserts that execution of the supplied executable throws an exception of the expectedType.
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(ContainerExtensionContext) - 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(TestExtensionContext) - 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(TestExtensionContext) - 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
ContainerExecutionCondition - Interface in org.junit.jupiter.api.extension
ContainerExecutionCondition defines the Extension API for programmatic, conditional container execution.
ContainerExtensionContext - Interface in org.junit.jupiter.api.extension
ContainerExtensionContext encapsulates the context in which the current container is being executed.
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 parts for creating a namespace.

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.
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.
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
 
evaluate(ContainerExtensionContext) - Method in interface org.junit.jupiter.api.extension.ContainerExecutionCondition
Evaluate this condition for the supplied ContainerExtensionContext.
evaluate(TestExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestExecutionCondition
Evaluate this condition for the supplied TestExtensionContext.
Executable - Interface in org.junit.jupiter.api
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.Executable
 
expectThrows(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.
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(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.
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.DynamicTest
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() - 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.
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.
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.
getTestException() - Method in interface org.junit.jupiter.api.extension.TestExtensionContext
Get the exception that was thrown during execution of the test associated with this TestExtensionContext, if available.
getTestInstance() - Method in interface org.junit.jupiter.api.extension.TestExtensionContext
Get the test instance associated with this TestExtensionContext.
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.
getUniqueId() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
Get the unique ID of the current test or container.

H

handleTestExecutionException(TestExtensionContext, 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.

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.

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 parameters at runtime.
postProcessTestInstance(Object, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
Callback for post-processing the supplied test instance.
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.
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.
resolve(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
Resolve the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

S

stream(Iterator<T>, Function<? super T, String>, Consumer<? 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.
supports(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
Determine if this resolver supports resolution of the Parameter in the supplied ParameterContext for the supplied ExtensionContext.

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.
TestExecutionCondition - Interface in org.junit.jupiter.api.extension
TestExecutionCondition defines the Extension API for programmatic, conditional test execution.
TestExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
TestExecutionExceptionHandler defines the API for Extensions that wish to handle exceptions thrown during test execution.
TestExtensionContext - Interface in org.junit.jupiter.api.extension
TestExtensionContext encapsulates the context in which the current test is being executed.
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.
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.
toString() - Method in class org.junit.jupiter.api.DynamicTest
 
toString() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
 
A B C D E F G H I N O P R S T 
Skip navigation links
junit-jupiter-api