Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- abort() - Static method in class org.junit.jupiter.api.Assumptions
-
Abort the test without a message.
- abort(String) - Static method in class org.junit.jupiter.api.Assumptions
-
Abort the test with the given
message. - abort(Supplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Abort the test with the supplied message.
- accept(T) - Method in interface org.junit.jupiter.api.function.ThrowingConsumer
-
Consume the supplied argument, potentially throwing an exception.
- actual(Object) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the actual value of the assertion.
- afterAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterAllCallback
-
Callback that is invoked once after all tests in the current container.
- AfterAll - Annotation Interface in org.junit.jupiter.api
-
@AfterAllis used to signal that the annotated method should be executed after all tests in the current test class. - AfterAllCallback - Interface in org.junit.jupiter.api.extension
-
AfterAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once after all tests in the container have been executed. - afterClassTemplateInvocation(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterClassTemplateInvocationCallback
-
Callback that is invoked after each invocation of a container template.
- AfterClassTemplateInvocationCallback - Interface in org.junit.jupiter.api.extension
-
AfterClassTemplateInvocationCallbackdefines the API forExtensionsthat wish to provide additional behavior once before each invocation of a@ClassTemplate. - afterEach(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterEachCallback
-
Callback that is invoked after an individual test and any user-defined teardown methods for that test have been executed.
- AfterEach - Annotation Interface in org.junit.jupiter.api
-
@AfterEachis used to signal that the annotated method should be executed after each@Test,@RepeatedTest,@ParameterizedTest,@TestFactory, and@TestTemplatemethod in the current test class. - AfterEachCallback - Interface in org.junit.jupiter.api.extension
-
AfterEachCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests after an individual test and any user-defined teardown methods (e.g.,@AfterEachmethods) for that test have been executed. - afterTestExecution(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
-
Callback that is invoked immediately after an individual test has been executed but before any user-defined teardown methods have been executed for that test.
- AfterTestExecutionCallback - Interface in org.junit.jupiter.api.extension
-
AfterTestExecutionCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests immediately after an individual test has been executed but before any user-defined teardown methods (e.g.,@AfterEachmethods) have been executed for that test. - AIX - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
IBM AIX operating system.
- ALWAYS - Enum constant in enum class org.junit.jupiter.api.io.CleanupMode
-
Always clean up a temporary directory after the test has completed.
- AnnotatedElementContext - Interface in org.junit.jupiter.api.extension
-
AnnotatedElementContextencapsulates the context in which anAnnotatedElementis declared. - append(Object...) - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
-
Create a new namespace by appending the supplied
partsto the existing sequence of parts in this namespace. - APPLICATION_JSON - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
application/jsonmedia type. - APPLICATION_JSON - Static variable in class org.junit.jupiter.api.MediaType
-
The
application/jsonmedia type. - APPLICATION_JSON_UTF_8 - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.
- APPLICATION_OCTET_STREAM - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
application/octet-streammedia type. - APPLICATION_OCTET_STREAM - Static variable in class org.junit.jupiter.api.MediaType
-
The
application/octet-streammedia type. - architectures() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnOs
-
Architectures on which the annotated class or method should be disabled.
- architectures() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnOs
-
Architectures on which the annotated class or method should be enabled.
- assertAll(String, Collection) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertAll(String, Stream) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertAll(String, Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertAll(Collection) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertAll(Stream) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertAll(Executable...) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that all supplied
executablesdo not throw exceptions. - assertArrayEquals(boolean[], boolean[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualboolean arrays are equal. - assertArrayEquals(boolean[], boolean[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualboolean arrays are equal. - assertArrayEquals(boolean[], boolean[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualboolean arrays are equal. - assertArrayEquals(byte[], byte[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualbyte arrays are equal. - assertArrayEquals(byte[], byte[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualbyte arrays are equal. - assertArrayEquals(byte[], byte[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualbyte arrays are equal. - assertArrayEquals(char[], char[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualchar arrays are equal. - assertArrayEquals(char[], char[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualchar arrays are equal. - assertArrayEquals(char[], char[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualchar arrays are equal. - assertArrayEquals(double[], double[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal. - assertArrayEquals(double[], double[], double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal within the given non-negativedelta. - assertArrayEquals(double[], double[], double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal within the given non-negativedelta. - assertArrayEquals(double[], double[], double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal within the given non-negativedelta. - assertArrayEquals(double[], double[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal. - assertArrayEquals(double[], double[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualdouble arrays are equal. - assertArrayEquals(float[], float[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal. - assertArrayEquals(float[], float[], float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal within the given non-negativedelta. - assertArrayEquals(float[], float[], float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal within the given non-negativedelta. - assertArrayEquals(float[], float[], float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal within the given non-negativedelta. - assertArrayEquals(float[], float[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal. - assertArrayEquals(float[], float[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualfloat arrays are equal. - assertArrayEquals(int[], int[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualint arrays are equal. - assertArrayEquals(int[], int[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualint arrays are equal. - assertArrayEquals(int[], int[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualint arrays are equal. - assertArrayEquals(long[], long[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactuallong arrays are equal. - assertArrayEquals(long[], long[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactuallong arrays are equal. - assertArrayEquals(long[], long[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactuallong arrays are equal. - assertArrayEquals(short[], short[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualshort arrays are equal. - assertArrayEquals(short[], short[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualshort arrays are equal. - assertArrayEquals(short[], short[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualshort arrays are equal. - assertArrayEquals(Object[], Object[]) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualobject arrays are deeply equal. - assertArrayEquals(Object[], Object[], String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualobject arrays are deeply equal. - assertArrayEquals(Object[], Object[], Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualobject arrays are deeply equal. - assertDoesNotThrow(Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executabledoes not throw any kind of exception. - assertDoesNotThrow(Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executabledoes not throw any kind of exception. - assertDoesNotThrow(Executable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executabledoes not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplierdoes not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplierdoes not throw any kind of exception. - assertDoesNotThrow(ThrowingSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
supplierdoes not throw any kind of exception. - assertEquals(byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(byte, byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(byte, Byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, char, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(char, Character, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(double, double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(double, double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(double, Double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(float, float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(float, float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal within the given non-negativedelta. - assertEquals(float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(float, Float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, int, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(int, Integer, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(long, Long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(short, Short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Byte, Byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, char, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Character, Character, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Double, Double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Float, Float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, int, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Integer, Integer, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Long, Long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Object, Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertEquals(Short, Short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualare equal. - assertFalse(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionisfalse. - assertFalse(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionisfalse. - assertFalse(boolean, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionisfalse. - assertFalse(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplierisfalse. - assertFalse(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplierisfalse. - assertFalse(BooleanSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplierisfalse. - assertInstanceOf(Class, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
actualValueis an instance of theexpectedType. - assertInstanceOf(Class, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
actualValueis an instance of theexpectedType. - assertInstanceOf(Class, Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
actualValueis an instance of theexpectedType. - assertionFailure() - Static method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Create a new
AssertionFailureBuilder. - AssertionFailureBuilder - Class in org.junit.jupiter.api
-
Builder for
AssertionFailedErrors. - Assertions - Class in org.junit.jupiter.api
-
Assertionsis a collection of utility methods that support asserting conditions in tests. - Assertions() - Constructor for class org.junit.jupiter.api.Assertions
-
Protected constructor allowing subclassing but not direct instantiation.
- assertIterableEquals(Iterable, Iterable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualiterables are deeply equal. - assertIterableEquals(Iterable, Iterable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualiterables are deeply equal. - assertIterableEquals(Iterable, Iterable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
expectedandactualiterables are deeply equal. - assertLinesMatch(List, List) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(List, List, String) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(List, List, Supplier) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(Stream, Stream) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(Stream, Stream, String) - Static method in class org.junit.jupiter.api.Assertions
- assertLinesMatch(Stream, Stream, Supplier) - Static method in class org.junit.jupiter.api.Assertions
- assertNotEquals(byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(byte, byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(byte, Byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, char, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(char, Character, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(double, double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(double, double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(double, Double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(float, float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(float, float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal within the givendelta. - assertNotEquals(float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(float, Float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, int, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(int, Integer, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(long, Long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(short, Short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, Byte) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, Byte, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Byte, Byte, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, char) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, char, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, char, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, Character) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, Character, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Character, Character, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, Double) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, Double, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Double, Double, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, Float) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, Float, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Float, Float, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, int) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, int, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, int, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, Integer) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, Integer, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Integer, Integer, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, Long) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, Long, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Long, Long, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Object, Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, Short) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, Short, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotEquals(Short, Short, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
unexpectedandactualare not equal. - assertNotNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualis notnull. - assertNotNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualis notnull. - assertNotNull(Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualis notnull. - assertNotSame(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
unexpectedobject and theactualobject are not the same object. - assertNotSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
unexpectedobject and theactualobject are not the same object. - assertNotSame(Object, Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
unexpectedobject and theactualobject are not the same object. - assertNull(Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualisnull. - assertNull(Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualisnull. - assertNull(Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that
actualisnull. - assertSame(Object, Object) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
expectedobject and theactualobject are the same object. - assertSame(Object, Object, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
expectedobject and theactualobject are the same object. - assertSame(Object, Object, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the
expectedobject and theactualobject are the same object. - assertThrows(Class, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of theexpectedTypeand return the exception. - assertThrows(Class, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of theexpectedTypeand return the exception. - assertThrows(Class, Executable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of theexpectedTypeand return the exception. - assertThrowsExactly(Class, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of exactly theexpectedTypeand return the exception. - assertThrowsExactly(Class, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of exactly theexpectedTypeand return the exception. - assertThrowsExactly(Class, Executable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablethrows an exception of exactly theexpectedTypeand return the exception. - assertTimeout(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeout(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeout(Duration, Executable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeout(Duration, ThrowingSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTimeout(Duration, ThrowingSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTimeout(Duration, ThrowingSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, Executable) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, Executable, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, Executable, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
executablecompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTimeoutPreemptively(Duration, ThrowingSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - assertTrue(boolean) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionistrue. - assertTrue(boolean, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionistrue. - assertTrue(boolean, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the supplied
conditionistrue. - assertTrue(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplieristrue. - assertTrue(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplieristrue. - assertTrue(BooleanSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Assert that the boolean condition supplied by
booleanSupplieristrue. - assumeFalse(boolean) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(boolean, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(boolean, Supplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeFalse(BooleanSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(boolean, Supplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier, String) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumeTrue(BooleanSupplier, Supplier) - Static method in class org.junit.jupiter.api.Assumptions
-
Validate the given assumption.
- assumingThat(boolean, Executable) - Static method in class org.junit.jupiter.api.Assumptions
-
Execute the supplied
Executable, but only if the supplied assumption is valid. - assumingThat(BooleanSupplier, Executable) - Static method in class org.junit.jupiter.api.Assumptions
-
Execute the supplied
Executable, but only if the supplied assumption is valid. - Assumptions - Class in org.junit.jupiter.api
-
Assumptionsis a collection of utility methods that support conditional test execution based on assumptions. - Assumptions() - Constructor for class org.junit.jupiter.api.Assumptions
-
Protected constructor allowing subclassing but not direct instantiation.
- AutoClose - Annotation Interface in org.junit.jupiter.api
-
@AutoCloseis used to indicate that an annotated field will be automatically closed after test execution.
B
- beforeAll(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeAllCallback
-
Callback that is invoked once before all tests in the current container.
- BeforeAll - Annotation Interface in org.junit.jupiter.api
-
@BeforeAllis used to signal that the annotated method should be executed before all tests in the current test class. - BeforeAllCallback - Interface in org.junit.jupiter.api.extension
-
BeforeAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once before all tests in the container have been executed. - beforeClassTemplateInvocation(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeClassTemplateInvocationCallback
-
Callback that is invoked before each invocation of a container template.
- BeforeClassTemplateInvocationCallback - Interface in org.junit.jupiter.api.extension
-
BeforeClassTemplateInvocationCallbackdefines the API forExtensionsthat wish to provide additional behavior once before each invocation of a@ClassTemplate. - beforeEach(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeEachCallback
-
Callback that is invoked before an individual test and any user-defined setup methods for that test have been executed.
- BeforeEach - Annotation Interface in org.junit.jupiter.api
-
@BeforeEachis used to signal that the annotated method should be executed before each@Test,@RepeatedTest,@ParameterizedTest,@TestFactory, and@TestTemplatemethod in the current test class. - BeforeEachCallback - Interface in org.junit.jupiter.api.extension
-
BeforeEachCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests before an individual test and any user-defined setup methods (e.g.,@BeforeEachmethods) for that test have been executed. - beforeTestExecution(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
-
Callback that is invoked immediately before an individual test is executed but after any user-defined setup methods have been executed for that test.
- BeforeTestExecutionCallback - Interface in org.junit.jupiter.api.extension
-
BeforeTestExecutionCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests immediately before an individual test is executed but after any user-defined setup methods (e.g.,@BeforeEachmethods) have been executed for that test. - beforeThreadInterrupt(PreInterruptContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.PreInterruptCallback
-
Callback that is invoked before a
Threadis interrupted withThread.interrupt(). - build() - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Build the
AssertionFailedErrorwithout throwing it. - buildAndThrow() - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Build the
AssertionFailedErrorand throw it. - Built-in Implementations - Section in interface org.junit.jupiter.api.ClassOrderer
- Built-in Implementations - Section in interface org.junit.jupiter.api.DisplayNameGenerator
- Built-in Implementations - Section in interface org.junit.jupiter.api.MethodOrderer
C
- cause(Throwable) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the cause of the assertion failure.
- CHILDREN - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceLockTarget
-
Add a shared resource to the direct children of the current node.
- ClassDescriptor - Interface in org.junit.jupiter.api
-
ClassDescriptorencapsulates functionality for a givenClass. - ClassName() - Constructor for class org.junit.jupiter.api.ClassOrderer.ClassName
- ClassOrderer - Interface in org.junit.jupiter.api
-
ClassOrdererdefines the API for ordering top-level test classes and@Nestedtest classes. - ClassOrderer.ClassName - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes alphanumerically based on their fully qualified names usingString.compareTo(String). - ClassOrderer.Default - Class in org.junit.jupiter.api
-
ClassOrdererthat allows to explicitly specify that the default ordering should be applied. - ClassOrderer.DisplayName - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes alphanumerically based on their display names usingString.compareTo(String) - ClassOrderer.OrderAnnotation - Class in org.junit.jupiter.api
-
ClassOrdererthat sorts classes based on the@Orderannotation. - ClassOrderer.Random - Class in org.junit.jupiter.api
-
ClassOrdererthat orders classes pseudo-randomly. - ClassOrdererContext - Interface in org.junit.jupiter.api
-
ClassOrdererContextencapsulates the context in which aClassOrdererwill be invoked. - ClassTemplate - Annotation Interface in org.junit.jupiter.api
-
@ClassTemplateis used to signal that the annotated class is a class template. - classTemplateAnnotation() - Element in annotation interface org.junit.jupiter.api.extension.ClassTemplateInvocationLifecycleMethod
-
The corresponding
ClassTemplate-derived annotation class. - ClassTemplateInvocationContext - Interface in org.junit.jupiter.api.extension
-
ClassTemplateInvocationContextrepresents the context of a single invocation of a@ClassTemplate. - ClassTemplateInvocationContextProvider - Interface in org.junit.jupiter.api.extension
-
ClassTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@ClassTemplate. - ClassTemplateInvocationLifecycleMethod - Annotation Interface in org.junit.jupiter.api.extension
-
Internal marker annotation for lifecycle methods specific to implementations of
ClassTemplateInvocationContextProvider. - cleanup() - Element in annotation interface org.junit.jupiter.api.io.TempDir
-
How the temporary directory gets cleaned up after the test completes.
- Clean Up - Section in annotation interface org.junit.jupiter.api.io.TempDir
- CleanupMode - Enum Class in org.junit.jupiter.api.io
-
Enumeration of cleanup modes for
@TempDir. - close() - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
-
Deprecated.Close underlying resources.
- close() - Method in interface org.junit.jupiter.api.io.TempDirFactory
- Composition - Section in annotation interface org.junit.jupiter.api.AfterAll
- Composition - Section in annotation interface org.junit.jupiter.api.AfterEach
- Composition - Section in annotation interface org.junit.jupiter.api.BeforeAll
- Composition - Section in annotation interface org.junit.jupiter.api.BeforeEach
- computeIfAbsent(Class) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Return the object of type
typeif it is present and notnullin thisStore(keyed bytype); otherwise, invoke the default constructor fortypeto generate the object, store it, and return it. - computeIfAbsent(K, Function) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Return the value of the specified required type that is stored under the supplied
key. - computeIfAbsent(K, Function, Class) - 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. - CONCURRENT - Enum constant in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Allow concurrent execution with any other node.
- ConditionEvaluationResult - Class in org.junit.jupiter.api.extension
-
The result of evaluating an
ExecutionCondition. - Constructor Requirements - Section in interface org.junit.jupiter.api.extension.AfterAllCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.AfterClassTemplateInvocationCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.AfterEachCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.BeforeAllCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.BeforeClassTemplateInvocationCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.BeforeEachCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.ExecutionCondition
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.Extension
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.InvocationInterceptor
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.ParameterResolver
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestInstanceFactory
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestInstancePreConstructCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
- Constructor Requirements - Section in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
- 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
partsfor creating a namespace. - create(String, String) - Static method in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.Create a media type with the given type and subtype.
- create(String, String) - Static method in class org.junit.jupiter.api.MediaType
-
Create a media type with the given type and subtype.
- create(String, String, Charset) - Static method in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.Create a media type with the given type, subtype, and charset.
- create(String, String, Charset) - Static method in class org.junit.jupiter.api.MediaType
-
Create a media type with the given type, subtype, and charset.
- createTempDirectory(AnnotatedElementContext, ExtensionContext) - Method in interface org.junit.jupiter.api.io.TempDirFactory
-
Create a new temporary directory.
- createTempDirectory(AnnotatedElementContext, ExtensionContext) - Method in class org.junit.jupiter.api.io.TempDirFactory.Standard
- createTestInstance(TestInstanceFactoryContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstanceFactory
-
Callback for creating a test instance for the supplied context.
- createTimeoutFailure(Duration, Supplier, Throwable, Thread) - Method in interface org.junit.jupiter.api.util.PreemptiveTimeoutUtils.TimeoutFailureFactory
-
Create a failure for the given timeout, message, and cause.
- Creation - Section in annotation interface org.junit.jupiter.api.io.TempDir
- current() - Static method in enum class org.junit.jupiter.api.condition.OS
-
Returns the current operating system, if known; otherwise,
null. - CURRENT_REPETITION_PLACEHOLDER - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Placeholder for the current repetition count of a
@RepeatedTestmethod:{currentRepetition} - currentJre() - Static method in enum class org.junit.jupiter.api.condition.JRE
- currentVersion() - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated.in favor of
JRE.currentJre() - currentVersionNumber() - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Returns the version number for the currently executing JVM, or
-1if the current JVM version could not be determined. - Custom Seed - Section in class org.junit.jupiter.api.ClassOrderer.Random
- Custom Seed - Section in class org.junit.jupiter.api.MethodOrderer.Random
D
- DEFAULT - Enum constant in enum class org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
-
Deprecated.This behavior will be removed from future versions of JUnit and
TestInstantiationAwareExtension.ExtensionContextScope.TEST_METHODwill become the default. - DEFAULT - Enum constant in enum class org.junit.jupiter.api.io.CleanupMode
-
Use the default cleanup mode.
- DEFAULT - Static variable in annotation interface org.junit.jupiter.api.Order
-
Default order value for elements not explicitly annotated with
@Order, equal to the value ofInteger.MAX_VALUE / 2. - DEFAULT_AFTER_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@AfterAllmethods: "junit.jupiter.execution.timeout.afterall.method.default". - DEFAULT_AFTER_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@AfterEachmethods: "junit.jupiter.execution.timeout.aftereach.method.default". - DEFAULT_BEFORE_ALL_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@BeforeAllmethods: "junit.jupiter.execution.timeout.beforeall.method.default". - DEFAULT_BEFORE_EACH_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@BeforeEachmethods: "junit.jupiter.execution.timeout.beforeeach.method.default". - DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.parallel.Execution
-
Property name used to set the default test execution mode for top-level classes: "junit.jupiter.execution.parallel.mode.classes.default"
- DEFAULT_CLEANUP_MODE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.io.TempDir
-
The name of the configuration parameter that is used to configure the default
CleanupMode. - DEFAULT_EXECUTION_MODE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.parallel.Execution
-
Property name used to set the default test execution mode: "junit.jupiter.execution.parallel.mode.default"
- DEFAULT_FACTORY_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.io.TempDir
-
Property name used to set the default temporary directory factory class name: "junit.jupiter.tempdir.factory.default"
- DEFAULT_GENERATOR - Static variable in annotation interface org.junit.jupiter.api.IndicativeSentencesGeneration
- DEFAULT_GENERATOR_PROPERTY_NAME - Static variable in interface org.junit.jupiter.api.DisplayNameGenerator
-
Property name used to set the default display name generator class name: "junit.jupiter.displayname.generator.default"
- DEFAULT_LIFECYCLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all lifecycle methods: "junit.jupiter.execution.timeout.lifecycle.method.default".
- DEFAULT_LIFECYCLE_PROPERTY_NAME - Static variable in enum class org.junit.jupiter.api.TestInstance.Lifecycle
-
Property name used to set the default test instance lifecycle mode: "junit.jupiter.testinstance.lifecycle.default"
- DEFAULT_ORDER_PROPERTY_NAME - Static variable in interface org.junit.jupiter.api.ClassOrderer
-
Property name used to set the default class orderer class name: "junit.jupiter.testclass.order.default"
- DEFAULT_ORDER_PROPERTY_NAME - Static variable in interface org.junit.jupiter.api.MethodOrderer
-
Property name used to set the default method orderer class name: "junit.jupiter.testmethod.order.default"
- DEFAULT_SCOPE_PROPERTY_NAME - Static variable in enum class org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
-
Property name used to set the default extension context scope: "junit.jupiter.extensions.testinstantiation.extensioncontextscope.default"
- DEFAULT_SEPARATOR - Static variable in annotation interface org.junit.jupiter.api.IndicativeSentencesGeneration
- DEFAULT_TEST_FACTORY_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@TestFactorymethods: "junit.jupiter.execution.timeout.testfactory.method.default". - DEFAULT_TEST_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@Testmethods: "junit.jupiter.execution.timeout.test.method.default". - DEFAULT_TEST_TEMPLATE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all
@TestTemplatemethods: "junit.jupiter.execution.timeout.testtemplate.method.default". - DEFAULT_TESTABLE_METHOD_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all testable methods: "junit.jupiter.execution.timeout.testable.method.default".
- DEFAULT_TIMEOUT_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default timeout for all testable and lifecycle methods: "junit.jupiter.execution.timeout.default".
- DEFAULT_TIMEOUT_THREAD_MODE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to set the default thread mode for all testable and lifecycle methods: "junit.jupiter.execution.timeout.thread.mode.default".
- Default Display Names - Section in org.junit.jupiter.api.TestInfo.getDisplayName()
- Default Execution Mode - Section in annotation interface org.junit.jupiter.api.parallel.Execution
- Default Timeouts - Section in annotation interface org.junit.jupiter.api.Timeout
- disabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Factory for creating disabled results.
- disabled(String, String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Factory for creating disabled results with custom reasons added by the user.
- Disabled - Annotation Interface in org.junit.jupiter.api
-
@Disabledis used to signal that the annotated test class or test method is currently disabled and should not be executed. - DisabledForJreRange - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledForJreRangeis used to signal that the annotated test class or test method is disabled for a specific range of Java Runtime Environment (JRE) versions. - DisabledIf - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledIfis used to signal that the annotated test class or test method is disabled if the provided condition evaluates totrue. - DisabledIfEnvironmentVariable - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledIfEnvironmentVariableis used to signal that the annotated test class or test method is disabled if the value of the specified environment variable matches the specified regular expression. - DisabledIfEnvironmentVariables - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledIfEnvironmentVariablesis a container for one or more@DisabledIfEnvironmentVariabledeclarations. - DisabledIfSystemProperties - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledIfSystemPropertiesis a container for one or more@DisabledIfSystemPropertydeclarations. - DisabledIfSystemProperty - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledIfSystemPropertyis used to signal that the annotated test class or test method is disabled if the value of the specified system property matches the specified regular expression. - DisabledInNativeImage - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledInNativeImageis used to signal that the annotated test class or test method is disabled when executing within a GraalVM native image. - DisabledOnJre - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledOnJreis used to signal that the annotated test class or test method is disabled on one or more specified Java Runtime Environment (JRE) versions. - DisabledOnOs - Annotation Interface in org.junit.jupiter.api.condition
-
@DisabledOnOsis used to signal that the annotated test class or test method is disabled on one or more specified operating systems or on one or more specified architectures - disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIf
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfSystemProperty
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnJre
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnOs
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIf
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfSystemProperty
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnJre
-
Custom reason to provide if the test or container is disabled.
- disabledReason() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnOs
-
Custom reason to provide if the test or container is disabled.
- Disabling Timeouts - Section in annotation interface org.junit.jupiter.api.Timeout
- DISCLAIMER - Section in package org.junit.jupiter.api.util
- DISPLAY_NAME_PLACEHOLDER - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
- DisplayName - Annotation Interface in org.junit.jupiter.api
-
@DisplayNameis used to declare a custom display name for the annotated test class or test method. - DisplayName() - Constructor for class org.junit.jupiter.api.ClassOrderer.DisplayName
- DisplayName() - Constructor for class org.junit.jupiter.api.MethodOrderer.DisplayName
- DisplayNameGeneration - Annotation Interface in org.junit.jupiter.api
-
@DisplayNameGenerationis used to declare a custom display name generator for the annotated test class. - DisplayNameGenerator - Interface in org.junit.jupiter.api
-
DisplayNameGeneratordefines the SPI for generating display names programmatically. - DisplayNameGenerator.IndicativeSentences - Class in org.junit.jupiter.api
-
DisplayNameGeneratorthat generates complete sentences. - DisplayNameGenerator.IndicativeSentences.SentenceFragment - Annotation Interface in org.junit.jupiter.api
-
@SentenceFragmentis used to configure a custom sentence fragment for a sentence generated by theIndicativeSentencesDisplayNameGenerator. - DisplayNameGenerator.ReplaceUnderscores - Class in org.junit.jupiter.api
-
DisplayNameGeneratorthat replaces underscores with spaces. - DisplayNameGenerator.Simple - Class in org.junit.jupiter.api
-
Simple
DisplayNameGeneratorthat removes trailing parentheses for methods with no parameters. - DisplayNameGenerator.Standard - Class in org.junit.jupiter.api
-
Standard
DisplayNameGenerator. - dynamicContainer(String, Iterable) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainerfor the supplied display name and collection of dynamic nodes. - dynamicContainer(String, URI, Stream) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainerfor the supplied display name, custom test sourceURI, and stream of dynamic nodes. - dynamicContainer(String, Stream) - Static method in class org.junit.jupiter.api.DynamicContainer
-
Factory for creating a new
DynamicContainerfor the supplied display name and stream of dynamic nodes. - DynamicContainer - Class in org.junit.jupiter.api
-
A
DynamicContaineris a container generated at runtime. - DynamicNode - Class in org.junit.jupiter.api
-
DynamicNodeserves as the abstract base class for a container or a test case generated at runtime. - dynamicTest(String, URI, Executable) - Static method in class org.junit.jupiter.api.DynamicTest
-
Factory for creating a new
DynamicTestfor the supplied display name, custom test sourceURI, and executable code block. - dynamicTest(String, Executable) - Static method in class org.junit.jupiter.api.DynamicTest
-
Factory for creating a new
DynamicTestfor the supplied display name and executable code block. - DynamicTest - Class in org.junit.jupiter.api
-
A
DynamicTestis a test case generated at runtime. - DynamicTestInvocationContext - Interface in org.junit.jupiter.api.extension
-
DynamicTestInvocationContextrepresents the context of a single invocation of a dynamic test.
E
- enabled(String) - Static method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Factory for creating enabled results.
- EnabledForJreRange - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledForJreRangeis used to signal that the annotated test class or test method is only enabled for a specific range of Java Runtime Environment (JRE) versions. - EnabledIf - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledIfis used to signal that the annotated test class or test method is only enabled if the provided condition evaluates totrue. - EnabledIfEnvironmentVariable - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledIfEnvironmentVariableis used to signal that the annotated test class or test method is only enabled if the value of the specified environment variable matches the specified regular expression. - EnabledIfEnvironmentVariables - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledIfEnvironmentVariablesis a container for one or more@EnabledIfEnvironmentVariabledeclarations. - EnabledIfSystemProperties - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledIfSystemPropertiesis a container for one or more@EnabledIfSystemPropertydeclarations. - EnabledIfSystemProperty - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledIfSystemPropertyis used to signal that the annotated test class or test method is only enabled if the value of the specified system property matches the specified regular expression. - EnabledInNativeImage - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledInNativeImageis used to signal that the annotated test class or test method is only enabled when executing within a GraalVM native image. - EnabledOnJre - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledOnJreis used to signal that the annotated test class or test method is only enabled on one or more specified Java Runtime Environment (JRE) versions. - EnabledOnOs - Annotation Interface in org.junit.jupiter.api.condition
-
@EnabledOnOsis used to signal that the annotated test class or test method is only enabled on one or more specified operating systems or one or more specified architectures. - equals(Object) - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
- equals(Object) - Method in class org.junit.jupiter.api.MediaType
- equals(Object) - Method in class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
- evaluateExecutionCondition(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ExecutionCondition
-
Evaluate this condition for the supplied
ExtensionContext. - Evaluation Order - Section in annotation interface org.junit.jupiter.api.AutoClose
- Example Usage - Section in annotation interface org.junit.jupiter.api.TestClassOrder
- Example Usage - Section in annotation interface org.junit.jupiter.api.TestMethodOrder
- Example Usage - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Exception Handling - Section in interface org.junit.jupiter.api.extension.TestWatcher
- Executable - Interface in org.junit.jupiter.api.function
-
Executableis a functional interface that can be used to implement any generic block of code that potentially throws aThrowable. - ExecutableInvoker - Interface in org.junit.jupiter.api.extension
-
ExecutableInvokerallows invoking methods and constructors with support for dynamic resolution of parameters viaParameterResolvers. - execute() - Method in interface org.junit.jupiter.api.function.Executable
- executeWithPreemptiveTimeout(Duration, ThrowingSupplier, Supplier, PreemptiveTimeoutUtils.TimeoutFailureFactory) - Static method in class org.junit.jupiter.api.util.PreemptiveTimeoutUtils
-
Assert that execution of the supplied
suppliercompletes before the giventimeoutis exceeded. - Execution - Annotation Interface in org.junit.jupiter.api.parallel
-
@Executionis used to configure the parallel execution mode of a test class or test method. - EXECUTION_REQUEST - Enum constant in enum class org.junit.jupiter.api.extension.ExtensionContext.StoreScope
-
The store is scoped to the current
ExecutionRequestof the JUnit PlatformLauncher. - ExecutionCondition - Interface in org.junit.jupiter.api.extension
-
ExecutionConditiondefines theExtensionAPI for programmatic, conditional test execution. - ExecutionMode - Enum Class in org.junit.jupiter.api.parallel
-
Supported execution modes for parallel test execution.
- expected(Object) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the expected value of the assertion.
- ExtendWith - Annotation Interface in org.junit.jupiter.api.extension
-
@ExtendWithis a repeatable annotation that is used to register extensions for the annotated test class, test interface, test method, parameter, or field. - Extensibility - Section in class org.junit.jupiter.api.Assertions
- Extension - Interface in org.junit.jupiter.api.extension
-
Marker interface for all extensions.
- EXTENSION_CONTEXT - Enum constant in enum class org.junit.jupiter.api.extension.ExtensionContext.StoreScope
-
The store is scoped to the current
ExtensionContext. - ExtensionConfigurationException - Exception Class in org.junit.jupiter.api.extension
-
Thrown if an error is encountered regarding the configuration of an extension.
- ExtensionConfigurationException(String) - Constructor for exception class org.junit.jupiter.api.extension.ExtensionConfigurationException
- ExtensionConfigurationException(String, Throwable) - Constructor for exception class org.junit.jupiter.api.extension.ExtensionConfigurationException
- ExtensionContext - Interface in org.junit.jupiter.api.extension
-
ExtensionContextencapsulates the context in which the current test or container is being executed. - ExtensionContext.Namespace - Class in org.junit.jupiter.api.extension
-
A
Namespaceis used to provide a scope for data saved by extensions within aExtensionContext.Store. - ExtensionContext.Store - Interface in org.junit.jupiter.api.extension
-
Storeprovides methods for extensions to save and retrieve data. - ExtensionContext.Store.CloseableResource - Interface in org.junit.jupiter.api.extension
-
Deprecated.Please extend
AutoCloseabledirectly. - ExtensionContext.StoreScope - Enum Class in org.junit.jupiter.api.extension
-
StoreScopeis an enumeration of the different scopes forExtensionContext.Storeinstances. - ExtensionContextException - Exception Class in org.junit.jupiter.api.extension
-
Thrown if an error is encountered regarding the use of an
ExtensionContextorExtensionContext.Store. - ExtensionContextException(String) - Constructor for exception class org.junit.jupiter.api.extension.ExtensionContextException
- ExtensionContextException(String, Throwable) - Constructor for exception class org.junit.jupiter.api.extension.ExtensionContextException
- Extensions - Annotation Interface in org.junit.jupiter.api.extension
-
@Extensionsis a container for one or more@ExtendWithdeclarations.
F
- factory() - Element in annotation interface org.junit.jupiter.api.io.TempDir
-
Factory for the temporary directory.
- fail() - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test without a failure message.
- fail(String) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given failure
message. - fail(String, Throwable) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given failure
messageas well as the underlyingcause. - fail(Throwable) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the given underlying
cause. - fail(Supplier) - Static method in class org.junit.jupiter.api.Assertions
-
Fail the test with the failure message retrieved from the given
messageSupplier. - failureThreshold() - Element in annotation interface org.junit.jupiter.api.RepeatedTest
-
Configures the number of failures after which remaining repetitions will be automatically skipped.
- findAnnotation(Class) - Method in interface org.junit.jupiter.api.ClassDescriptor
-
Find the first annotation of
annotationTypethat is either present or meta-present on theClassfor this descriptor. - findAnnotation(Class) - Method in interface org.junit.jupiter.api.extension.AnnotatedElementContext
-
Find the first annotation of
annotationTypethat is either present or meta-present on theAnnotatedElementfor this context. - findAnnotation(Class) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Find the first annotation of
annotationTypethat is either present or meta-present on theAnnotatedElementfor this context. - findAnnotation(Class) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Find the first annotation of
annotationTypethat is either present or meta-present on theMethodfor this descriptor. - findInstance(Class) - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Find the first test instance that is an instance of the supplied required type, checking from innermost to outermost.
- findRepeatableAnnotations(Class) - Method in interface org.junit.jupiter.api.ClassDescriptor
-
Find all repeatable annotations of
annotationTypethat are either present or meta-present on theClassfor this descriptor. - findRepeatableAnnotations(Class) - Method in interface org.junit.jupiter.api.extension.AnnotatedElementContext
-
Find all repeatable annotations of
annotationTypethat are either present or meta-present on theAnnotatedElementfor this context. - findRepeatableAnnotations(Class) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Find all repeatable annotations of
annotationTypethat are either present or meta-present on theAnnotatedElementfor this context. - findRepeatableAnnotations(Class) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Find all repeatable annotations of
annotationTypethat are either present or meta-present on theMethodfor this descriptor. - FREEBSD - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
FreeBSD operating system.
G
- generateDisplayNameForClass(Class) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given top-level or
staticnested test class. - generateDisplayNameForClass(Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences
- generateDisplayNameForClass(Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForClass(Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- generateDisplayNameForMethod(Class, Method) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Deprecated.
- generateDisplayNameForMethod(List, Class, Method) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given method.
- generateDisplayNameForMethod(List, Class, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences
- generateDisplayNameForMethod(List, Class, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForMethod(List, Class, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Simple
- generateDisplayNameForMethod(List, Class, Method) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- generateDisplayNameForNestedClass(Class) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Deprecated.
- generateDisplayNameForNestedClass(List, Class) - Method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a display name for the given
@Nestedinner test class. - generateDisplayNameForNestedClass(List, Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences
- generateDisplayNameForNestedClass(List, Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- generateDisplayNameForNestedClass(List, Class) - Method in class org.junit.jupiter.api.DisplayNameGenerator.Standard
- generator() - Element in annotation interface org.junit.jupiter.api.IndicativeSentencesGeneration
-
Custom display name generator to use for sentence fragments.
- get() - Method in interface org.junit.jupiter.api.function.ThrowingSupplier
-
Get a result, potentially throwing an exception.
- 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) - 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. - getAccessMode() - Method in class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
-
Get the access mode for this lock.
- getAdditionalExtensions() - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContext
-
Get the additional extensions for this invocation.
- getAdditionalExtensions() - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Get the additional extensions for this invocation.
- getAllInstances() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get all test instances, ordered from outermost to innermost.
- getAnnotatedElement() - Method in interface org.junit.jupiter.api.extension.AnnotatedElementContext
-
Get the
AnnotatedElementfor this context. - getAnnotatedElement() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the
AnnotatedElementfor this context. - getArguments() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the arguments of the executable in this invocation context.
- getChildren() - Method in class org.junit.jupiter.api.DynamicContainer
- getClassDescriptors() - Method in interface org.junit.jupiter.api.ClassOrdererContext
-
Get the list of class descriptors to order.
- getConfigurationParameter(String) - Method in interface org.junit.jupiter.api.ClassOrdererContext
-
Get the configuration parameter stored under the specified
key. - getConfigurationParameter(String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the configuration parameter stored under the specified
key. - getConfigurationParameter(String) - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the configuration parameter stored under the specified
key. - getConfigurationParameter(String, Function) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get and transform the configuration parameter stored under the specified
keyusing the specifiedtransformer. - getCurrentRepetition() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the current repetition of the corresponding
@RepeatedTestmethod. - getDeclaringExecutable() - Method in interface org.junit.jupiter.api.extension.ParameterContext
- getDefaultExecutionMode() - Method in interface org.junit.jupiter.api.MethodOrderer
-
Get the default
ExecutionModefor the test class configured with thisMethodOrderer. - getDisplayName() - Method in interface org.junit.jupiter.api.ClassDescriptor
-
Get the display name for this descriptor's
class. - getDisplayName() - Method in class org.junit.jupiter.api.DynamicNode
-
Get the display name of this
DynamicNode. - getDisplayName() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the display name for the current test or container.
- getDisplayName() - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Get the display name for this descriptor's
method. - getDisplayName() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the display name of the current test or container.
- getDisplayName(int) - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContext
-
Get the display name for this invocation.
- getDisplayName(int) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Get the display name for this invocation.
- getDisplayNameGenerator(Class) - Static method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Return the
DisplayNameGeneratorinstance corresponding to the givenClass. - getElement() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
AnnotatedElementcorresponding to the current extension context, if available. - getEnclosingInstances() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get the enclosing test instances, excluding the innermost test instance, ordered from outermost to innermost.
- getEnclosingTestClasses() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the enclosing test classes of the current test or container.
- getExecutable() - Method in class org.junit.jupiter.api.DynamicTest
-
Get the
executablecode block associated with thisDynamicTest. - getExecutable() - Method in interface org.junit.jupiter.api.extension.DynamicTestInvocationContext
-
Get the
Executableof this dynamic test invocation context. - getExecutable() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the method or constructor of this invocation context.
- getExecutableInvoker() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get an
ExecutableInvokerto invoke methods and constructors with support for dynamic resolution of parameters. - 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. - getExecutionMode() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
ExecutionModeassociated with the current test or container. - getFailureCount() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the current number of repetitions of the corresponding
@RepeatedTestmethod that have ended in a failure. - getFailureThreshold() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the configured failure threshold of the corresponding
@RepeatedTestmethod. - getIndex() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the index of the
Parameterfor this context within the parameter list of theExecutablethat declares the parameter. - getInnermostInstance() - Method in interface org.junit.jupiter.api.extension.TestInstances
-
Get the innermost test instance.
- getKey() - Method in class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
-
Get the key for this lock.
- getMethod() - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Get the method for this descriptor.
- getMethodDescriptors() - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the list of method descriptors to order.
- getName() - Method in interface org.junit.jupiter.api.Named
-
Get the name of the payload.
- getName() - Method in interface org.junit.jupiter.api.NamedExecutable
- getOrComputeIfAbsent(Class) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Deprecated.Please use
ExtensionContext.Store.computeIfAbsent(Class)instead. - getOrComputeIfAbsent(K, Function) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Deprecated.Please use
ExtensionContext.Store.computeIfAbsent(Object, Function)instead. - getOrComputeIfAbsent(K, Function, Class) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Deprecated.Please use
ExtensionContext.Store.computeIfAbsent(Object, Function, Class)instead. - getOrDefault(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, or the supplieddefaultValueif no value is found for the suppliedkeyin this store or in an ancestor. - getOuterInstance() - Method in interface org.junit.jupiter.api.extension.TestInstanceFactoryContext
-
Get the instance of the outer class, if available.
- getParameter() - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Get the
Parameterfor this context. - getParent() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the parent extension context, if available.
- getParts() - Method in class org.junit.jupiter.api.extension.ExtensionContext.Namespace
- getPayload() - Method in interface org.junit.jupiter.api.Named
-
Get the payload.
- getPayload() - Method in interface org.junit.jupiter.api.NamedExecutable
- 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
Classassociated with the current test or container. - getRequiredTestInstance() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required test instance associated with the current test or container.
- getRequiredTestInstances() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required test instances associated with the current test or container.
- getRequiredTestMethod() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the required
Methodassociated with the current test or container. - getRoot() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the root
ExtensionContext. - getStore(ExtensionContext.Namespace) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
ExtensionContext.Storefor the suppliedExtensionContext.Namespace. - getStore(ExtensionContext.StoreScope, ExtensionContext.Namespace) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Returns the store for supplied scope and namespace.
- 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
Executablethat declares theParameterfor this context will be invoked, if available. - getTarget() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the target object of this invocation context, if available.
- getTargetClass() - Method in interface org.junit.jupiter.api.extension.ReflectiveInvocationContext
-
Get the target class of this invocation context.
- getTestClass() - Method in interface org.junit.jupiter.api.ClassDescriptor
-
Get the class for this descriptor.
- getTestClass() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
Classassociated with the current test or container, if available. - getTestClass() - Method in interface org.junit.jupiter.api.extension.TestInstanceFactoryContext
-
Get the test class for this context.
- getTestClass() - Method in interface org.junit.jupiter.api.MethodOrdererContext
-
Get the test class for this context.
- getTestClass() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the
Classassociated 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.
- getTestInstanceLifecycle() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
TestInstance.Lifecycleof the test instance associated with the current test or container, if available. - getTestInstances() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the test instances associated with the current test or container, if available.
- getTestInstantiationExtensionContextScope(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstantiationAwareExtension
-
Whether this extension should receive a test-scoped
ExtensionContextduring the instantiation of test instances. - getTestMethod() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the
Methodassociated with the current test, if available. - getTestMethod() - Method in interface org.junit.jupiter.api.TestInfo
-
Get the
Methodassociated with the current test or container, if available. - getTestSourceUri() - Method in class org.junit.jupiter.api.DynamicNode
-
Get the custom test source
URIof thisDynamicNode. - getThreadToInterrupt() - Method in interface org.junit.jupiter.api.extension.PreInterruptContext
-
Get the
Threadwhich will be interrupted. - getTotalRepetitions() - Method in interface org.junit.jupiter.api.RepetitionInfo
-
Get the total number of repetitions of the corresponding
@RepeatedTestmethod. - getUniqueId() - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Get the unique ID of the current test or container.
- 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.
- GLOBAL - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the global resource lock: "org.junit.platform.engine.support.hierarchical.ExclusiveResource.GLOBAL_KEY"
H
- handleAfterAllMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwablethat was thrown during execution of a@AfterAlllifecycle method. - handleAfterEachMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwablethat was thrown during execution of a@AfterEachlifecycle method. - handleBeforeAllMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwablethat was thrown during execution of a@BeforeAlllifecycle method. - handleBeforeEachMethodExecutionException(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
-
Handle the supplied
Throwablethat was thrown during execution of a@BeforeEachlifecycle method. - 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
- hashCode() - Method in class org.junit.jupiter.api.MediaType
- hashCode() - Method in class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
I
- IMAGE_JPEG - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
image/jpegmedia type. - IMAGE_JPEG - Static variable in class org.junit.jupiter.api.MediaType
-
The
image/jpegmedia type. - IMAGE_PNG - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
image/pngmedia type. - IMAGE_PNG - Static variable in class org.junit.jupiter.api.MediaType
-
The
image/pngmedia type. - Implementation Guidelines - Section in interface org.junit.jupiter.api.extension.LifecycleMethodExecutionExceptionHandler
- includeValuesInMessage(boolean) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set whether to include the actual and expected values in the generated failure message.
- IndicativeSentences() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences
- IndicativeSentencesGeneration - Annotation Interface in org.junit.jupiter.api
-
@IndicativeSentencesGenerationis used to register theDisplayNameGenerator.IndicativeSentencesdisplay name generator and configure it. - INFERRED - Enum constant in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
The thread mode is determined using the parameter configured in property "junit.jupiter.execution.timeout.thread.mode.default".
- Inheritance - Section in annotation interface org.junit.jupiter.api.AutoClose
- Inheritance - Section in annotation interface org.junit.jupiter.api.ClassTemplate
- Inheritance - Section in annotation interface org.junit.jupiter.api.RepeatedTest
- Inheritance - Section in annotation interface org.junit.jupiter.api.Test
- Inheritance - Section in annotation interface org.junit.jupiter.api.TestFactory
- Inheritance - Section in annotation interface org.junit.jupiter.api.TestTemplate
- Inheritance - Section in annotation interface org.junit.jupiter.api.extension.ExtendWith
- Inheritance - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Inheritance and Execution Order - Section in annotation interface org.junit.jupiter.api.AfterAll
- Inheritance and Execution Order - Section in annotation interface org.junit.jupiter.api.AfterEach
- Inheritance and Execution Order - Section in annotation interface org.junit.jupiter.api.BeforeAll
- Inheritance and Execution Order - Section in annotation interface org.junit.jupiter.api.BeforeEach
- INSTANCE - Static variable in class org.junit.jupiter.api.io.TempDirFactory.Standard
- Instance Fields - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- interceptAfterAllMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of an
@AfterAllmethod. - interceptAfterEachMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of an
@AfterEachmethod. - interceptBeforeAllMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@BeforeAllmethod. - interceptBeforeEachMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@BeforeEachmethod. - interceptDynamicTest(InvocationInterceptor.Invocation, DynamicTestInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
DynamicTest. - interceptTestClassConstructor(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a test class constructor.
- interceptTestFactoryMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@TestFactorymethod, such as a@RepeatedTestor@ParameterizedTestmethod. - interceptTestMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@Testmethod. - interceptTestTemplateMethod(InvocationInterceptor.Invocation, ReflectiveInvocationContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor
-
Intercept the invocation of a
@TestTemplatemethod. - Invocation Contract - Section in interface org.junit.jupiter.api.extension.InvocationInterceptor
- InvocationInterceptor - Interface in org.junit.jupiter.api.extension
-
InvocationInterceptordefines the API forExtensionsthat wish to intercept calls to test code. - InvocationInterceptor.Invocation<T> - Interface in org.junit.jupiter.api.extension
-
An invocation that returns a result and may throw a
Throwable. - invoke(Constructor) - Method in interface org.junit.jupiter.api.extension.ExecutableInvoker
-
Invoke the supplied top-level constructor with dynamic parameter resolution.
- invoke(Constructor, Object) - Method in interface org.junit.jupiter.api.extension.ExecutableInvoker
-
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.
- invoke(Method) - Method in interface org.junit.jupiter.api.extension.ExecutableInvoker
-
Invoke the supplied
staticmethod with dynamic parameter resolution. - invoke(Method, Object) - Method in interface org.junit.jupiter.api.extension.ExecutableInvoker
-
Invoke the supplied method with dynamic parameter resolution.
- isAnnotated(Class) - Method in interface org.junit.jupiter.api.ClassDescriptor
-
Determine if an annotation of
annotationTypeis either present or meta-present on theClassfor this descriptor. - isAnnotated(Class) - Method in interface org.junit.jupiter.api.extension.AnnotatedElementContext
-
Determine if an annotation of
annotationTypeis either present or meta-present on theAnnotatedElementfor this context. - isAnnotated(Class) - Method in interface org.junit.jupiter.api.extension.ParameterContext
-
Determine if an annotation of
annotationTypeis either present or meta-present on theAnnotatedElementfor this context. - isAnnotated(Class) - Method in interface org.junit.jupiter.api.MethodDescriptor
-
Determine if an annotation of
annotationTypeis either present or meta-present on theMethodfor this descriptor. - isCurrentOs() - Method in enum class org.junit.jupiter.api.condition.OS
-
Returns
trueif thisOSis known to be the operating system on which the current JVM is executing. - isCurrentVersion() - Method in enum class org.junit.jupiter.api.condition.JRE
-
Returns
trueif thisJREis known to be the Java Runtime Environment version for the currently executing JVM or if the version isJRE.OTHER. - isCurrentVersion(int) - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Returns
trueif the supplied version number is known to be the Java Runtime Environment version for the currently executing JVM or if the supplied version number is-1and the current JVM version could not be determined. - isDisabled() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
-
Whether the container or test should be disabled.
- Isolated - Annotation Interface in org.junit.jupiter.api.parallel
-
@Isolatedis used to declare that the annotated test class should be executed in isolation from other test classes.
J
- JAVA_10 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_11 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_12 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_13 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_14 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_15 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_16 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_17 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 17.
- JAVA_18 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 18.
- JAVA_19 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 19.
- JAVA_20 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 20.
- JAVA_21 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 21.
- JAVA_22 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 22.
- JAVA_23 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 23.
- JAVA_24 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 24.
- JAVA_25 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 25.
- JAVA_26 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Java 26.
- JAVA_8 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JAVA_9 - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
Deprecated, for removal: This API element is subject to removal in a future version.No longer supported at runtime; please use
JRE.JAVA_17or later - JRE - Enum Class in org.junit.jupiter.api.condition
-
Enumeration of Java Runtime Environment (JRE) versions.
K
- Kotlin Support - Section in class org.junit.jupiter.api.Assertions
L
- LAUNCHER_SESSION - Enum constant in enum class org.junit.jupiter.api.extension.ExtensionContext.StoreScope
-
The store is scoped to the current
LauncherSession. - lifecycleMethodAnnotation() - Element in annotation interface org.junit.jupiter.api.extension.ClassTemplateInvocationLifecycleMethod
-
The actual lifecycle method annotation class.
- LifecycleMethodExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
-
LifecycleMethodExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during the execution of@BeforeAll,@BeforeEach,@AfterEach, and@AfterAlllifecycle methods. - LINUX - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
Linux-based operating system.
- LOCALE - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the default locale for the current instance of the JVM: "java.util.Locale.default"
- Lock(String) - Constructor for class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
-
Create a new
LockwithResourceAccessMode.READ_WRITE. - Lock(String, ResourceAccessMode) - Constructor for class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
-
Create a new
Lock. - LONG_DISPLAY_NAME - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Long display name pattern for a repeated test: "{displayName} :: repetition {currentRepetition} of {totalRepetitions}"
M
- MAC - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
Apple Macintosh operating system (e.g., macOS).
- matches() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
-
A regular expression that will be used to match against the retrieved value of the
DisabledIfEnvironmentVariable.named()environment variable. - matches() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfSystemProperty
-
A regular expression that will be used to match against the retrieved value of the
DisabledIfSystemProperty.named()JVM system property. - matches() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
-
A regular expression that will be used to match against the retrieved value of the
EnabledIfEnvironmentVariable.named()environment variable. - matches() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfSystemProperty
-
A regular expression that will be used to match against the retrieved value of the
EnabledIfSystemProperty.named()JVM system property. - max() - Element in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
-
Java Runtime Environment version which is used as the upper boundary for the version range that determines if the annotated class or method should be disabled, specified as a
JREenum constant. - max() - Element in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
-
Java Runtime Environment version which is used as the upper boundary for the version range that determines if the annotated class or method should be enabled, specified as a
JREenum constant. - maxVersion() - Element in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
-
Java Runtime Environment version which is used as the upper boundary for the version range that determines if the annotated class or method should be disabled, specified as an integer.
- maxVersion() - Element in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
-
Java Runtime Environment version which is used as the upper boundary for the version range that determines if the annotated class or method should be enabled, specified as an integer.
- mayReturnZeroClassTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider
-
Signal that this provider may provide zero invocation contexts for the class template represented by the supplied
context. - mayReturnZeroTestTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
Signal that this provider may provide zero invocation contexts for the test template method represented by the supplied
context. - MediaType - Class in org.junit.jupiter.api.extension
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
MediaTypeinstead. - MediaType - Class in org.junit.jupiter.api
-
Represents a media type as defined by RFC 2045.
- MediaType(String) - Constructor for class org.junit.jupiter.api.MediaType
- MediaType(String, String, Charset) - Constructor for class org.junit.jupiter.api.MediaType
- message(Object) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the user-defined message of the assertion.
- MethodDescriptor - Interface in org.junit.jupiter.api
-
MethodDescriptorencapsulates functionality for a givenMethod. - MethodName() - Constructor for class org.junit.jupiter.api.MethodOrderer.MethodName
- MethodOrderer - Interface in org.junit.jupiter.api
-
MethodOrdererdefines the API for ordering the test methods in a given test class. - MethodOrderer.Default - Class in org.junit.jupiter.api
-
MethodOrdererthat allows to explicitly specify that the default ordering should be applied. - MethodOrderer.DisplayName - Class in org.junit.jupiter.api
-
MethodOrdererthat sorts methods alphanumerically based on their display names usingString.compareTo(String) - MethodOrderer.MethodName - Class in org.junit.jupiter.api
-
MethodOrdererthat sorts methods alphanumerically based on their names usingString.compareTo(String). - MethodOrderer.OrderAnnotation - Class in org.junit.jupiter.api
-
MethodOrdererthat sorts methods based on the@Orderannotation. - MethodOrderer.Random - Class in org.junit.jupiter.api
-
MethodOrdererthat orders methods pseudo-randomly. - MethodOrdererContext - Interface in org.junit.jupiter.api
-
MethodOrdererContextencapsulates the context in which aMethodOrdererwill be invoked. - Method Signatures - Section in annotation interface org.junit.jupiter.api.AfterAll
- Method Signatures - Section in annotation interface org.junit.jupiter.api.AfterEach
- Method Signatures - Section in annotation interface org.junit.jupiter.api.BeforeAll
- Method Signatures - Section in annotation interface org.junit.jupiter.api.BeforeEach
- min() - Element in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
-
Java Runtime Environment version which is used as the lower boundary for the version range that determines if the annotated class or method should be disabled, specified as a
JREenum constant. - min() - Element in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
-
Java Runtime Environment version which is used as the lower boundary for the version range that determines if the annotated class or method should be enabled, specified as a
JREenum constant. - minVersion() - Element in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
-
Java Runtime Environment version which is used as the lower boundary for the version range that determines if the annotated class or method should be disabled, specified as an integer.
- minVersion() - Element in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
-
Java Runtime Environment version which is used as the lower boundary for the version range that determines if the annotated class or method should be enabled, specified as an integer.
- mode() - Element in annotation interface org.junit.jupiter.api.parallel.ResourceLock
-
The resource access mode.
N
- name() - Element in annotation interface org.junit.jupiter.api.RepeatedTest
-
The display name for each repetition of the repeated test.
- named() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfEnvironmentVariable
-
The name of the environment variable to retrieve.
- named() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfSystemProperty
-
The name of the JVM system property to retrieve.
- named() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable
-
The name of the environment variable to retrieve.
- named() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfSystemProperty
-
The name of the JVM system property to retrieve.
- named(String, T) - Static method in interface org.junit.jupiter.api.Named
-
Factory method for creating an instance of
Namedbased on anameand apayload. - Named<T> - Interface in org.junit.jupiter.api
-
Namedis a container that associates a name with a given payload. - NamedExecutable - Interface in org.junit.jupiter.api
-
NamedExecutablejoinsExecutableandNamedin a one self-typed functional interface. - Nested - Annotation Interface in org.junit.jupiter.api
-
@Nestedis used to signal that the annotated class is a nested, non-static test class (i.e., an inner class) that can share setup and state with an instance of its enclosing class. - NEVER - Enum constant in enum class org.junit.jupiter.api.io.CleanupMode
-
Never clean up a temporary directory after the test has completed.
O
- Object Equality - Section in class org.junit.jupiter.api.Assertions
- of(String, T) - Static method in interface org.junit.jupiter.api.Named
-
Factory method for creating an instance of
Namedbased on anameand apayload. - ON_SUCCESS - Enum constant in enum class org.junit.jupiter.api.io.CleanupMode
-
Only clean up a temporary directory if the test completed successfully.
- OPENBSD - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
OpenBSD operating system.
- Order - Annotation Interface in org.junit.jupiter.api
-
@Orderis an annotation that is used to configure the order in which the annotated element (i.e., field, method, or class) should be evaluated or executed relative to other elements of the same category. - OrderAnnotation() - Constructor for class org.junit.jupiter.api.ClassOrderer.OrderAnnotation
- OrderAnnotation() - Constructor for class org.junit.jupiter.api.MethodOrderer.OrderAnnotation
- orderClasses(ClassOrdererContext) - Method in class org.junit.jupiter.api.ClassOrderer.ClassName
-
Sort the classes encapsulated in the supplied
ClassOrdererContextalphanumerically based on their fully qualified names. - orderClasses(ClassOrdererContext) - Method in class org.junit.jupiter.api.ClassOrderer.Default
- orderClasses(ClassOrdererContext) - Method in class org.junit.jupiter.api.ClassOrderer.DisplayName
-
Sort the classes encapsulated in the supplied
ClassOrdererContextalphanumerically based on their display names. - orderClasses(ClassOrdererContext) - Method in class org.junit.jupiter.api.ClassOrderer.OrderAnnotation
-
Sort the classes encapsulated in the supplied
ClassOrdererContextbased on the@Orderannotation. - orderClasses(ClassOrdererContext) - Method in interface org.junit.jupiter.api.ClassOrderer
-
Order the classes encapsulated in the supplied
ClassOrdererContext. - orderClasses(ClassOrdererContext) - Method in class org.junit.jupiter.api.ClassOrderer.Random
-
Order the classes encapsulated in the supplied
ClassOrdererContextpseudo-randomly. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.Default
- orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.DisplayName
-
Sort the methods encapsulated in the supplied
MethodOrdererContextalphanumerically based on their display names. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.MethodName
-
Sort the methods encapsulated in the supplied
MethodOrdererContextalphanumerically based on their names and formal parameter lists. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.OrderAnnotation
-
Sort the methods encapsulated in the supplied
MethodOrdererContextbased on the@Orderannotation. - orderMethods(MethodOrdererContext) - Method in interface org.junit.jupiter.api.MethodOrderer
-
Order the methods encapsulated in the supplied
MethodOrdererContext. - orderMethods(MethodOrdererContext) - Method in class org.junit.jupiter.api.MethodOrderer.Random
-
Order the methods encapsulated in the supplied
MethodOrdererContextpseudo-randomly. - org.junit.jupiter.api - module org.junit.jupiter.api
-
Defines the JUnit Jupiter API for writing tests.
- org.junit.jupiter.api - package org.junit.jupiter.api
-
JUnit Jupiter API for writing tests.
- org.junit.jupiter.api.condition - package org.junit.jupiter.api.condition
-
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
- org.junit.jupiter.api.extension - package org.junit.jupiter.api.extension
-
JUnit Jupiter API for writing extensions.
- org.junit.jupiter.api.extension.support - package org.junit.jupiter.api.extension.support
-
JUnit Jupiter API support for writing extensions.
- org.junit.jupiter.api.function - package org.junit.jupiter.api.function
-
Functional interfaces used within JUnit Jupiter.
- org.junit.jupiter.api.io - package org.junit.jupiter.api.io
-
IO-related support in JUnit Jupiter.
- org.junit.jupiter.api.parallel - package org.junit.jupiter.api.parallel
-
JUnit Jupiter API for influencing parallel test execution.
- org.junit.jupiter.api.util - package org.junit.jupiter.api.util
-
Internal JUnit Jupiter utilities.
- OS - Enum Class in org.junit.jupiter.api.condition
-
Enumeration of common operating systems used for testing Java applications.
- OTHER - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
A JRE version other than
JRE.JAVA_8,JRE.JAVA_9,JRE.JAVA_10,JRE.JAVA_11,JRE.JAVA_12,JRE.JAVA_13,JRE.JAVA_14,JRE.JAVA_15,JRE.JAVA_16,JRE.JAVA_17,JRE.JAVA_18,JRE.JAVA_19,JRE.JAVA_20,JRE.JAVA_21,JRE.JAVA_22,JRE.JAVA_23,JRE.JAVA_24,JRE.JAVA_25, orJRE.JAVA_26. - OTHER - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
An operating system other than
OS.AIX,OS.FREEBSD,OS.LINUX,OS.MAC,OS.OPENBSD,OS.SOLARIS, orOS.WINDOWS.
P
- Parallel Execution - Section in annotation interface org.junit.jupiter.api.TestInstance
- Parallel Execution - Section in annotation interface org.junit.jupiter.api.TestMethodOrder
- ParameterContext - Interface in org.junit.jupiter.api.extension
-
ParameterContextencapsulates the context in which anExecutablewill be invoked for a givenParameter. - ParameterResolutionException - Exception Class 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 class org.junit.jupiter.api.extension.ParameterResolutionException
- ParameterResolutionException(String, Throwable) - Constructor for exception class org.junit.jupiter.api.extension.ParameterResolutionException
- ParameterResolver - Interface in org.junit.jupiter.api.extension
-
ParameterResolverdefines the API forExtensionsthat wish to dynamically resolve arguments for parameters at runtime. - parameterTypesAsString(Method) - Static method in interface org.junit.jupiter.api.DisplayNameGenerator
-
Generate a string representation of the formal parameters of the supplied method, consisting of the simple names of the parameter types, separated by commas, and enclosed in parentheses.
- parse(String) - Static method in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.Parse the given media type value.
- parse(String) - Static method in class org.junit.jupiter.api.MediaType
-
Parse the given media type value.
- PER_CLASS - Enum constant in enum class org.junit.jupiter.api.TestInstance.Lifecycle
-
When using this mode, a new test instance will be created once per test class or class template.
- PER_METHOD - Enum constant in enum class org.junit.jupiter.api.TestInstance.Lifecycle
-
When using this mode, a new test instance will be created for each test method, test factory method, or test template method.
- postProcessTestInstance(Object, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePostProcessor
-
Callback for post-processing the supplied test instance.
- preConstructTestInstance(TestInstanceFactoryContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePreConstructCallback
-
Callback invoked prior to test instances being constructed.
- preDestroyTestInstance(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
-
Callback for processing test instances before they are destroyed.
- preDestroyTestInstances(ExtensionContext, Consumer) - Static method in interface org.junit.jupiter.api.extension.TestInstancePreDestroyCallback
-
Utility method for processing all test instances of an
ExtensionContextthat are not present in any of its parent contexts. - Preemptive Timeouts - Section in class org.junit.jupiter.api.Assertions
- PreemptiveTimeoutUtils - Class in org.junit.jupiter.api.util
-
Internal utilities for executing code with a preemptive timeout.
- PreemptiveTimeoutUtils.TimeoutFailureFactory<T> - Interface in org.junit.jupiter.api.util
-
Factory for timeout failures.
- PreInterruptCallback - Interface in org.junit.jupiter.api.extension
-
PreInterruptCallbackdefines the API forExtensionsthat wish to be called prior to invocations ofThread.interrupt()by theTimeoutextension. - PreInterruptContext - Interface in org.junit.jupiter.api.extension
-
PreInterruptContextencapsulates the context in which anbeforeThreadInterruptmethod is called. - prepareInvocation(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContext
-
Prepare the imminent invocation of the class template.
- prepareInvocation(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContext
-
Prepare the imminent invocation of the test template.
- proceed() - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
-
Proceed with this invocation.
- provideClassTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider
-
Provide invocation contexts for the class template represented by the supplied
context. - provideForClass(Class) - Method in interface org.junit.jupiter.api.parallel.ResourceLocksProvider
-
Add shared resources for a test class.
- provideForMethod(List, Class, Method) - Method in interface org.junit.jupiter.api.parallel.ResourceLocksProvider
-
Add shared resources for a test method.
- provideForNestedClass(List, Class) - Method in interface org.junit.jupiter.api.parallel.ResourceLocksProvider
-
Add shared resources for a
@Nestedtest class. - providers() - Element in annotation interface org.junit.jupiter.api.parallel.ResourceLock
-
An array of one or more classes implementing
ResourceLocksProvider. - provideTestTemplateInvocationContexts(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider
-
Provide invocation contexts for the test template method represented by the supplied
context. - publishDirectory(String, ThrowingConsumer) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.
- publishDirectory(String, ThrowingConsumer) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish a directory with the supplied name written by the supplied action and attach it to the current test or container.
- publishDirectory(Path) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied directory and attach it to the current test or container.
- publishEntry(String) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied value as a report entry.
- publishEntry(String, String) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied key-value pair as a report entry.
- publishEntry(Map) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied map of key-value pairs as a report entry.
- publishFile(String, MediaType, ThrowingConsumer) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Deprecated, for removal: This API element is subject to removal in a future version.
- publishFile(String, MediaType, ThrowingConsumer) - Method in interface org.junit.jupiter.api.TestReporter
-
Deprecated, for removal: This API element is subject to removal in a future version.
- publishFile(String, MediaType, ThrowingConsumer) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish a file with the supplied name written by the supplied action and attach it to the current test or container.
- publishFile(String, MediaType, ThrowingConsumer) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish a file with the supplied name and media type written by the supplied action and attach it to the current test or container.
- publishFile(Path, MediaType) - Method in interface org.junit.jupiter.api.TestReporter
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
TestReporter.publishFile(Path, MediaType)instead. - publishFile(Path, MediaType) - Method in interface org.junit.jupiter.api.TestReporter
-
Publish the supplied file and attach it to the current test or container.
- publishReportEntry(String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish the specified value to be consumed by an
org.junit.platform.engine.EngineExecutionListenerin order to supply additional information to the reporting infrastructure. - publishReportEntry(String, String) - Method in interface org.junit.jupiter.api.extension.ExtensionContext
-
Publish the specified key-value pair to be consumed by an
org.junit.platform.engine.EngineExecutionListenerin order to supply additional information to the reporting infrastructure. - publishReportEntry(Map) - 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.EngineExecutionListenerin order to supply additional information to the reporting infrastructure. - put(Object, Object) - Method in interface org.junit.jupiter.api.extension.ExtensionContext.Store
-
Store a
valuefor later retrieval under the suppliedkey.
R
- Random() - Constructor for class org.junit.jupiter.api.ClassOrderer.Random
- Random() - Constructor for class org.junit.jupiter.api.MethodOrderer.Random
- RANDOM_SEED_PROPERTY_NAME - Static variable in class org.junit.jupiter.api.ClassOrderer.Random
-
Property name used to set the random seed used by this
ClassOrderer: "junit.jupiter.execution.order.random.seed" - RANDOM_SEED_PROPERTY_NAME - Static variable in class org.junit.jupiter.api.MethodOrderer.Random
-
Property name used to set the random seed used by this
MethodOrderer: "junit.jupiter.execution.order.random.seed" - Rationale for throwing Throwable instead of Exception - Section in interface org.junit.jupiter.api.function.Executable
- Rationale for throwing Throwable instead of Exception - Section in interface org.junit.jupiter.api.function.ThrowingConsumer
- Rationale for throwing Throwable instead of Exception - Section in interface org.junit.jupiter.api.function.ThrowingSupplier
- READ - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require only read access to the resource.
- READ_WRITE - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Require read and write access to the resource.
- reason() - Element in annotation interface org.junit.jupiter.api.parallel.Execution
-
The reason for using the selected execution mode.
- reason(String) - Method in class org.junit.jupiter.api.AssertionFailureBuilder
-
Set the reason why the assertion failed.
- ReflectiveInvocationContext<T> - Interface in org.junit.jupiter.api.extension
-
ReflectiveInvocationContextencapsulates the context of a reflective invocation of an executable (method or constructor). - RegisterExtension - Annotation Interface in org.junit.jupiter.api.extension
-
@RegisterExtensionis used to register anExtensionvia a field in a test class. - Registration Order - Section in annotation interface org.junit.jupiter.api.extension.ExtendWith
- Registration Order - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- 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) - 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 Interface in org.junit.jupiter.api
-
@RepeatedTestis used to signal that the annotated method is a test template method that should be repeated a specified number of times with a configurable display name and an optional failure threshold. - RepetitionInfo - Interface in org.junit.jupiter.api
-
RepetitionInfois used to inject information about the current repetition of a repeated test into@RepeatedTest,@BeforeEach, and@AfterEachmethods. - ReplaceUnderscores() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.ReplaceUnderscores
- resolveParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Resolve an argument for the
Parameterin the suppliedParameterContextfor the suppliedExtensionContext. - resolveParameter(ParameterContext, ExtensionContext) - Method in class org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
- ResourceAccessMode - Enum Class in org.junit.jupiter.api.parallel
-
The access mode required by a test class or method for a given resource.
- ResourceLock - Annotation Interface in org.junit.jupiter.api.parallel
-
@ResourceLockis used to declare that the annotated test class or test method requires access to a shared resource identified by a key. - ResourceLocks - Annotation Interface in org.junit.jupiter.api.parallel
-
@ResourceLocksis a container for one or more@ResourceLockdeclarations. - ResourceLocksProvider - Interface in org.junit.jupiter.api.parallel
-
A
ResourceLocksProvideris used to programmatically add shared resources to a test class or its test methods dynamically at runtime. - ResourceLocksProvider.Lock - Class in org.junit.jupiter.api.parallel
-
Lockrepresents a shared resource. - ResourceLockTarget - Enum Class in org.junit.jupiter.api.parallel
-
ResourceLockTargetis used to define the target of a shared resource. - Resources - Class in org.junit.jupiter.api.parallel
-
Common resource names for synchronizing test execution.
S
- SAME_THREAD - Enum constant in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Force execution in same thread as the parent node.
- SAME_THREAD - Enum constant in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
The test code is executed in the thread of the calling code.
- Scope - Section in annotation interface org.junit.jupiter.api.io.TempDir
- Scope and Lifecycle - Section in annotation interface org.junit.jupiter.api.AutoClose
- SELF - Enum constant in enum class org.junit.jupiter.api.parallel.ResourceLockTarget
-
Add a shared resource to the current node.
- SEPARATE_THREAD - Enum constant in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
The test code is executed in a different thread than that of the calling code.
- separator() - Element in annotation interface org.junit.jupiter.api.IndicativeSentencesGeneration
-
Custom separator for sentence fragments.
- SHORT_DISPLAY_NAME - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Short display name pattern for a repeated test: "repetition {currentRepetition} of {totalRepetitions}"
- Simple() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.Simple
- skip() - Method in interface org.junit.jupiter.api.extension.InvocationInterceptor.Invocation
-
Explicitly skip this invocation.
- SOLARIS - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
Oracle Solaris operating system.
- Standard() - Constructor for class org.junit.jupiter.api.DisplayNameGenerator.Standard
- Standard() - Constructor for class org.junit.jupiter.api.io.TempDirFactory.Standard
- Static Fields - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- stream(Iterator, ThrowingConsumer) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given generator and test executor.
- stream(Iterator) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given iterator.
- stream(Iterator, Function, ThrowingConsumer) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given generator and test executor.
- stream(Stream, ThrowingConsumer) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream and test executor.
- stream(Stream) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream.
- stream(Stream, Function, ThrowingConsumer) - Static method in class org.junit.jupiter.api.DynamicTest
-
Generate a stream of dynamic tests based on the given input stream and test executor.
- Supported Extension APIs - Section in annotation interface org.junit.jupiter.api.extension.ExtendWith
- Supported Extension APIs - Section in annotation interface org.junit.jupiter.api.extension.RegisterExtension
- Supported placeholders - Section in org.junit.jupiter.api.RepeatedTest.name()
- Supported timeout mode values (case insensitive): - Section in org.junit.jupiter.api.Timeout.TIMEOUT_MODE_PROPERTY_NAME
- Supported Values - Section in annotation interface org.junit.jupiter.api.Timeout
- Supported Values - Section in org.junit.jupiter.api.ClassOrderer.DEFAULT_ORDER_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.ClassOrderer.Random.RANDOM_SEED_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.DisplayNameGenerator.DEFAULT_GENERATOR_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.MethodOrderer.DEFAULT_ORDER_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.MethodOrderer.Random.RANDOM_SEED_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.TestInstance.Lifecycle.DEFAULT_LIFECYCLE_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope.DEFAULT_SCOPE_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.io.TempDir.DEFAULT_FACTORY_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.parallel.Execution.DEFAULT_CLASSES_EXECUTION_MODE_PROPERTY_NAME
- Supported Values - Section in org.junit.jupiter.api.parallel.Execution.DEFAULT_EXECUTION_MODE_PROPERTY_NAME
- supportsClassTemplate(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ClassTemplateInvocationContextProvider
-
Determine if this provider supports providing invocation contexts for the class template represented by the supplied
context. - supportsParameter(ParameterContext, ExtensionContext) - Method in interface org.junit.jupiter.api.extension.ParameterResolver
-
Determine if this resolver supports resolution of an argument for the
Parameterin the suppliedParameterContextfor the suppliedExtensionContext. - supportsParameter(ParameterContext, ExtensionContext) - Method in class org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
- 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. - Syntax Rules for Tags - Section in annotation interface org.junit.jupiter.api.Tag
- SYSTEM_ERR - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard error stream of the current process: "java.lang.System.err"
- SYSTEM_OUT - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the standard output stream of the current process: "java.lang.System.out"
- SYSTEM_PROPERTIES - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents Java's system properties: "java.lang.System.properties"
T
- Tag - Annotation Interface in org.junit.jupiter.api
-
@Tagis a repeatable annotation that is used to declare a tag for the annotated test class or test method. - Tags - Annotation Interface in org.junit.jupiter.api
-
@Tagsis a container for one or more@Tagdeclarations. - target() - Element in annotation interface org.junit.jupiter.api.parallel.ResourceLock
-
The target of a resource created from
ResourceLock.value()andResourceLock.mode(). - Technical Details - Section in annotation interface org.junit.jupiter.api.condition.DisabledInNativeImage
- Technical Details - Section in annotation interface org.junit.jupiter.api.condition.EnabledInNativeImage
- TempDir - Annotation Interface in org.junit.jupiter.api.io
- TempDirFactory - Interface in org.junit.jupiter.api.io
-
TempDirFactorydefines the SPI for creating temporary directories programmatically. - TempDirFactory.Standard - Class in org.junit.jupiter.api.io
-
Standard
TempDirFactoryimplementation which delegates toFiles.createTempDirectory(Path, String, FileAttribute...)using"junit-"as prefix. - TemplateInvocationValidationException - Exception Class in org.junit.jupiter.api.extension
-
TemplateInvocationValidationExceptionis an exception thrown by aTestTemplateInvocationContextProviderorClassTemplateInvocationContextProviderif a validation fails when while providing or closingStreamof invocation contexts. - TemplateInvocationValidationException(String) - Constructor for exception class org.junit.jupiter.api.extension.TemplateInvocationValidationException
- Test - Annotation Interface in org.junit.jupiter.api
-
@Testis used to signal that the annotated method is a test method. - TEST_METHOD - Enum constant in enum class org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
-
The extension should receive an
ExtensionContextscoped to the test method, unless thePER_CLASSlifecycle is used. - testAborted(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has been aborted.
- TestClassOrder - Annotation Interface in org.junit.jupiter.api
-
@TestClassOrderis a type-level annotation that is used to configure aClassOrdererfor the@Nestedtest classes of the annotated test class. - testDisabled(ExtensionContext, Optional) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a disabled test has been skipped.
- TestExecutionExceptionHandler - Interface in org.junit.jupiter.api.extension
-
TestExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during test execution. - Test Execution Order - Section in annotation interface org.junit.jupiter.api.RepeatedTest
- Test Execution Order - Section in annotation interface org.junit.jupiter.api.Test
- Test Execution Order - Section in annotation interface org.junit.jupiter.api.TestFactory
- Test Execution Order - Section in annotation interface org.junit.jupiter.api.TestTemplate
- TestFactory - Annotation Interface in org.junit.jupiter.api
-
@TestFactoryis used to signal that the annotated method is a test factory method. - testFailed(ExtensionContext, Throwable) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has failed.
- TestInfo - Interface in org.junit.jupiter.api
-
TestInfois used to inject information about the current test or container into to@Test,@RepeatedTest,@ParameterizedTest,@TestFactory,@BeforeEach,@AfterEach,@BeforeAll, and@AfterAllmethods. - TestInstance - Annotation Interface in org.junit.jupiter.api
-
@TestInstanceis 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 Class in org.junit.jupiter.api
-
Enumeration of test instance lifecycle modes.
- TestInstanceFactory - Interface in org.junit.jupiter.api.extension
- TestInstanceFactoryContext - Interface in org.junit.jupiter.api.extension
-
TestInstanceFactoryContextencapsulates the context in which a test class is to be instantiated by aTestInstanceFactory. - Test Instance Lifecycle - Section in annotation interface org.junit.jupiter.api.Nested
- TestInstancePostProcessor - Interface in org.junit.jupiter.api.extension
-
TestInstancePostProcessordefines the API forExtensionsthat wish to post-process test instances. - TestInstancePreConstructCallback - Interface in org.junit.jupiter.api.extension
-
TestInstancePreConstructCallbackdefines the API forExtensionsthat wish to be invoked prior to creation of test instances. - TestInstancePreDestroyCallback - Interface in org.junit.jupiter.api.extension
-
TestInstancePreDestroyCallbackdefines the API forExtensionsthat wish to process test instances after they have been used in tests but before they are destroyed. - TestInstances - Interface in org.junit.jupiter.api.extension
-
TestInstancesencapsulates the test instances of a test. - TestInstantiationAwareExtension - Interface in org.junit.jupiter.api.extension
-
Interface for
Extensionsthat are aware and can influence the instantiation of test instances. - TestInstantiationAwareExtension.ExtensionContextScope - Enum Class in org.junit.jupiter.api.extension
-
ExtensionContextScopeis used to define the scope of theExtensionContextpassed to an extension during the instantiation of test instances. - TestInstantiationException - Exception Class in org.junit.jupiter.api.extension
-
Thrown if an error is encountered during the execution of a
TestInstanceFactory. - TestInstantiationException(String) - Constructor for exception class org.junit.jupiter.api.extension.TestInstantiationException
- TestInstantiationException(String, Throwable) - Constructor for exception class org.junit.jupiter.api.extension.TestInstantiationException
- TestMethodOrder - Annotation Interface in org.junit.jupiter.api
-
@TestMethodOrderis a type-level annotation that is used to configure aMethodOrdererfor the test methods of the annotated test class or test interface. - TestReporter - Interface in org.junit.jupiter.api
-
Parameters of type
TestReportercan be injected into@BeforeEachand@AfterEachlifecycle methods as well as methods annotated with@Test,@RepeatedTest,@ParameterizedTest,@TestFactory, etc. - testSuccessful(ExtensionContext) - Method in interface org.junit.jupiter.api.extension.TestWatcher
-
Invoked after a test has completed successfully.
- TestTemplate - Annotation Interface in org.junit.jupiter.api
-
@TestTemplateis used to signal that the annotated method is a test template method. - TestTemplateInvocationContext - Interface in org.junit.jupiter.api.extension
-
TestTemplateInvocationContextrepresents the context of a single invocation of a test template. - TestTemplateInvocationContextProvider - Interface in org.junit.jupiter.api.extension
-
TestTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@TestTemplatemethod. - TestWatcher - Interface in org.junit.jupiter.api.extension
-
TestWatcherdefines the API forExtensionsthat wish to process test results. - TEXT_PLAIN - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
text/plainmedia type. - TEXT_PLAIN - Static variable in class org.junit.jupiter.api.MediaType
-
The
text/plainmedia type. - TEXT_PLAIN_UTF_8 - Static variable in class org.junit.jupiter.api.extension.MediaType
-
Deprecated.The
text/plain; charset=UTF-8media type. - TEXT_PLAIN_UTF_8 - Static variable in class org.junit.jupiter.api.MediaType
-
The
text/plain; charset=UTF-8media type. - THREAD_DUMP_ENABLED_PROPERTY_NAME - Static variable in interface org.junit.jupiter.api.extension.PreInterruptCallback
-
Property name used to enable dumping the stack of all threads to
System.outwhen a timeout has occurred. - threadMode() - Element in annotation interface org.junit.jupiter.api.Timeout
-
The thread mode of this timeout.
- ThrowingConsumer<T> - Interface in org.junit.jupiter.api.function
-
ThrowingConsumeris a functional interface that can be used to implement any generic block of code that consumes an argument and potentially throws aThrowable. - ThrowingSupplier<T> - Interface in org.junit.jupiter.api.function
-
ThrowingSupplieris a functional interface that can be used to implement any generic block of code that returns an object and potentially throws aThrowable. - TIME_ZONE - Static variable in class org.junit.jupiter.api.parallel.Resources
-
Represents the default time zone for the current instance of the JVM: "java.util.TimeZone.default"
- Timeout - Annotation Interface in org.junit.jupiter.api
-
@Timeoutis used to define a timeout for a method or all testable methods within one class and its@Nestedclasses. - TIMEOUT_MODE_PROPERTY_NAME - Static variable in annotation interface org.junit.jupiter.api.Timeout
-
Property name used to configure whether timeouts are applied to tests: "junit.jupiter.execution.timeout.mode".
- Timeout.ThreadMode - Enum Class in org.junit.jupiter.api
-
ThreadModeis used to define whether test code should be executed in the thread of the calling code or in a separate thread. - toString() - Method in class org.junit.jupiter.api.DynamicNode
- toString() - Method in class org.junit.jupiter.api.extension.ConditionEvaluationResult
- toString() - Method in class org.junit.jupiter.api.MediaType
-
Returns a string representation of this media type.
- toString() - Method in class org.junit.jupiter.api.parallel.ResourceLocksProvider.Lock
- TOTAL_REPETITIONS_PLACEHOLDER - Static variable in annotation interface org.junit.jupiter.api.RepeatedTest
-
Placeholder for the total number of repetitions of a
@RepeatedTestmethod:{totalRepetitions} - TypeBasedParameterResolver<T> - Class in org.junit.jupiter.api.extension.support
-
ParameterResolveradapter which resolves a parameter based on its exact type. - TypeBasedParameterResolver() - Constructor for class org.junit.jupiter.api.extension.support.TypeBasedParameterResolver
U
- UNDEFINED - Enum constant in enum class org.junit.jupiter.api.condition.JRE
-
An undefined JRE version.
- unit() - Element in annotation interface org.junit.jupiter.api.Timeout
-
The time unit of this timeout.
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(Executable)
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(Executable, String)
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(Executable, Supplier)
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(ThrowingSupplier)
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(ThrowingSupplier, String)
- Usage Note - Section in org.junit.jupiter.api.Assertions.assertDoesNotThrow(ThrowingSupplier, Supplier)
- Use Cases - Section in annotation interface org.junit.jupiter.api.TestInstance
V
- value() - Element in annotation interface org.junit.jupiter.api.AutoClose
-
Specify the name of the method to invoke to close the resource.
- value() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIf
-
The name of a method within the test class or in an external class to use as a condition for the test's or container's execution.
- value() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfEnvironmentVariables
-
An array of one or more
@DisabledIfEnvironmentVariabledeclarations. - value() - Element in annotation interface org.junit.jupiter.api.condition.DisabledIfSystemProperties
-
An array of one or more
@DisabledIfSystemPropertydeclarations. - value() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be disabled, specified as
JREenum constants. - value() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnOs
-
Operating systems on which the annotated class or method should be disabled.
- value() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIf
-
The name of a method within the test class or in an external class to use as a condition for the test's or container's execution.
- value() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfEnvironmentVariables
-
An array of one or more
@EnabledIfEnvironmentVariabledeclarations. - value() - Element in annotation interface org.junit.jupiter.api.condition.EnabledIfSystemProperties
-
An array of one or more
@EnabledIfSystemPropertydeclarations. - value() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be enabled, specified as
JREenum constants. - value() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnOs
-
Operating systems on which the annotated class or method should be enabled.
- value() - Element in annotation interface org.junit.jupiter.api.Disabled
-
The reason this annotated test class or test method is disabled.
- value() - Element in annotation interface org.junit.jupiter.api.DisplayName
-
Custom display name for the annotated class or method.
- value() - Element in annotation interface org.junit.jupiter.api.DisplayNameGeneration
-
Custom display name generator.
- value() - Element in annotation interface org.junit.jupiter.api.DisplayNameGenerator.IndicativeSentences.SentenceFragment
-
Custom sentence fragment for the annotated class or method.
- value() - Element in annotation interface org.junit.jupiter.api.extension.ExtendWith
-
An array of one or more
Extensionclasses to register. - value() - Element in annotation interface org.junit.jupiter.api.extension.Extensions
-
An array of one or more
@ExtendWithdeclarations. - value() - Element in annotation interface org.junit.jupiter.api.Order
-
The order value for the annotated element (i.e., field, method, or class).
- value() - Element in annotation interface org.junit.jupiter.api.parallel.Execution
-
The required/preferred execution mode.
- value() - Element in annotation interface org.junit.jupiter.api.parallel.Isolated
-
The reason this test class needs to run in isolation.
- value() - Element in annotation interface org.junit.jupiter.api.parallel.ResourceLock
-
The resource key.
- value() - Element in annotation interface org.junit.jupiter.api.parallel.ResourceLocks
-
An array of one or more @ResourceLock declarations.
- value() - Element in annotation interface org.junit.jupiter.api.RepeatedTest
-
The number of repetitions.
- value() - Element in annotation interface org.junit.jupiter.api.Tag
-
The tag.
- value() - Element in annotation interface org.junit.jupiter.api.Tags
-
An array of one or more
Tags. - value() - Element in annotation interface org.junit.jupiter.api.TestClassOrder
-
The
ClassOrdererto use. - value() - Element in annotation interface org.junit.jupiter.api.TestInstance
-
The test instance lifecycle mode to use.
- value() - Element in annotation interface org.junit.jupiter.api.TestMethodOrder
-
The
MethodOrdererto use. - value() - Element in annotation interface org.junit.jupiter.api.Timeout
-
The duration of this timeout.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.condition.OS
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.extension.ExtensionContext.StoreScope
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.io.CleanupMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.parallel.ResourceLockTarget
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.TestInstance.Lifecycle
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.junit.jupiter.api.condition.JRE
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.condition.OS
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.extension.ExtensionContext.StoreScope
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.extension.TestInstantiationAwareExtension.ExtensionContextScope
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.io.CleanupMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.parallel.ExecutionMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.parallel.ResourceAccessMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.parallel.ResourceLockTarget
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.TestInstance.Lifecycle
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.junit.jupiter.api.Timeout.ThreadMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- version() - Method in enum class org.junit.jupiter.api.condition.JRE
-
Get the version of this
JRE. - versions() - Element in annotation interface org.junit.jupiter.api.condition.DisabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be disabled, specified as integers.
- versions() - Element in annotation interface org.junit.jupiter.api.condition.EnabledOnJre
-
Java Runtime Environment versions on which the annotated class or method should be enabled, specified as integers.
W
- Warning - Section in annotation interface org.junit.jupiter.api.condition.DisabledForJreRange
- Warning - Section in annotation interface org.junit.jupiter.api.condition.DisabledIf
- Warning - Section in annotation interface org.junit.jupiter.api.condition.DisabledOnJre
- Warning - Section in annotation interface org.junit.jupiter.api.condition.DisabledOnOs
- Warning - Section in annotation interface org.junit.jupiter.api.condition.EnabledForJreRange
- Warning - Section in annotation interface org.junit.jupiter.api.condition.EnabledIf
- Warning - Section in annotation interface org.junit.jupiter.api.condition.EnabledOnJre
- Warning - Section in annotation interface org.junit.jupiter.api.condition.EnabledOnOs
- Warning - Section in interface org.junit.jupiter.api.extension.TestInstanceFactory
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.findAnnotation(Class)
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.findAnnotation(Class)
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.findRepeatableAnnotations(Class)
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.findRepeatableAnnotations(Class)
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.getAnnotatedElement()
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.getAnnotatedElement()
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.isAnnotated(Class)
- WARNING - Section in org.junit.jupiter.api.extension.AnnotatedElementContext.isAnnotated(Class)
- WARNING - Section in org.junit.jupiter.api.extension.ParameterContext.getParameter()
- WINDOWS - Enum constant in enum class org.junit.jupiter.api.condition.OS
-
Microsoft Windows operating system.
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.AfterAllCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.AfterClassTemplateInvocationCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.AfterEachCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.BeforeAllCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.BeforeClassTemplateInvocationCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.BeforeEachCallback
- Wrapping Behavior - Section in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
MediaType.APPLICATION_JSONinstead.