TestDescriptor for @Test methods.
The default display name for a test method is the name of the method
concatenated with a comma-separated list of parameter types in parentheses.
The names of parameter types are retrieved using Class#getSimpleName().
For example, the default display name for the following test method is
testUser(TestInfo, User).
@Test
void testUser(TestInfo testInfo, @Mock User user) { ... }
| Modifier and Type | Field and Description |
|---|---|
| private static final InterceptingExecutableInvoker. | |
| private static final InterceptingExecutableInvoker | |
| private final InterceptingExecutableInvoker. | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | TestMethodTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method testMethod, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration)
|
| pack-priv | TestMethodTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method testMethod, JupiterConfiguration configuration)
|
| pack-priv | TestMethodTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method testMethod, JupiterConfiguration configuration, InterceptingExecutableInvoker.
|
| defaultInterceptorCall | back to summary |
|---|---|
| private static final InterceptingExecutableInvoker. | |
| executableInvoker | back to summary |
|---|---|
| private static final InterceptingExecutableInvoker executableInvoker | |
| interceptorCall | back to summary |
|---|---|
| private final InterceptingExecutableInvoker. | |
| SEGMENT_TYPE | back to summary |
|---|---|
| public static final String SEGMENT_TYPE | |
| TestMethodTestDescriptor | back to summary |
|---|---|
| public TestMethodTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method testMethod, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration) | |
| TestMethodTestDescriptor | back to summary |
|---|---|
| pack-priv TestMethodTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method testMethod, JupiterConfiguration configuration) | |
| TestMethodTestDescriptor | back to summary |
|---|---|
| pack-priv TestMethodTestDescriptor(UniqueId uniqueId, String displayName, Class<?> testClass, Method testMethod, JupiterConfiguration configuration, InterceptingExecutableInvoker. | |
| cleanUp | back to summary |
|---|---|
| public void cleanUp(JupiterEngineExecutionContext context) throws Exception Overrides org. Overrides default org. Doc from org. Clean up the supplied The default implementation does nothing.
| |
| execute | back to summary |
|---|---|
| public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node. Overrides default org. Doc from org. Execute the behavior of this node. Containers typically do not implement this method since the
The supplied The default implementation returns the supplied
| |
| getType | back to summary |
|---|---|
| public TestDescriptor. Implements org. Doc from org. Determine the
| |
| invokeAfterEachCallbacks | back to summary |
|---|---|
| private void invokeAfterEachCallbacks(JupiterEngineExecutionContext context) | |
| invokeAfterEachExecutionExceptionHandlers | back to summary |
|---|---|
| private void invokeAfterEachExecutionExceptionHandlers(ExtensionContext context, ExtensionRegistry registry, Throwable throwable) | |
| invokeAfterEachMethods | back to summary |
|---|---|
| private void invokeAfterEachMethods(JupiterEngineExecutionContext context) | |
| invokeAfterTestExecutionCallbacks | back to summary |
|---|---|
| private void invokeAfterTestExecutionCallbacks(JupiterEngineExecutionContext context) | |
| invokeBeforeEachCallbacks | back to summary |
|---|---|
| private void invokeBeforeEachCallbacks(JupiterEngineExecutionContext context) | |
| invokeBeforeEachExecutionExceptionHandlers | back to summary |
|---|---|
| private void invokeBeforeEachExecutionExceptionHandlers(ExtensionContext context, ExtensionRegistry registry, Throwable throwable) | |
| invokeBeforeEachMethods | back to summary |
|---|---|
| private void invokeBeforeEachMethods(JupiterEngineExecutionContext context) | |
| invokeBeforeTestExecutionCallbacks | back to summary |
|---|---|
| private void invokeBeforeTestExecutionCallbacks(JupiterEngineExecutionContext context) | |
| invokeTestExecutionExceptionHandlers | back to summary |
|---|---|
| private void invokeTestExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, Throwable throwable) | |
| invokeTestInstancePreDestroyCallbacks | back to summary |
|---|---|
| private void invokeTestInstancePreDestroyCallbacks(JupiterEngineExecutionContext context) | |
| invokeTestMethod | back to summary |
|---|---|
| protected void invokeTestMethod(JupiterEngineExecutionContext context, Node. | |
| isPerMethodLifecycle | back to summary |
|---|---|
| private boolean isPerMethodLifecycle(JupiterEngineExecutionContext context) | |
| nodeFinished | back to summary |
|---|---|
| public void nodeFinished(JupiterEngineExecutionContext context, TestDescriptor descriptor, TestExecutionResult result) Overrides default org. Invoke
| |
| populateNewExtensionRegistry | back to summary |
|---|---|
| protected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context) | |
| prepare | back to summary |
|---|---|
| public JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context) Overrides default org. Implements abstract org. Doc from org. Must be overridden and return a new context with a new
| |
| prepareExtensionContext | back to summary |
|---|---|
| protected void prepareExtensionContext(ExtensionContext extensionContext) | |
| withUniqueId | back to summary |
|---|---|
| protected TestMethodTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer) Implements abstract org. Doc from org. Returns shallow copy (without children) of this descriptor with the supplied unique ID.
| |