TestDescriptor for tests based on Java classes.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final ClassBasedTestDescriptor. | |
| private static final InterceptingExecutableInvoker | |
| private @Nullable ClassBasedTestDescriptor. | |
| private @Nullable TestInstanceFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv | ClassBasedTestDescriptor(UniqueId uniqueId, Class<?> testClass, Supplier<String> displayNameSupplier, JupiterConfiguration configuration)
|
| pack-priv | ClassBasedTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration)
|
| classInfo | back to summary |
|---|---|
| protected final ClassBasedTestDescriptor. | |
| executableInvoker | back to summary |
|---|---|
| private static final InterceptingExecutableInvoker executableInvoker | |
| lifecycleMethods | back to summary |
|---|---|
| private @Nullable ClassBasedTestDescriptor. | |
| testInstanceFactory | back to summary |
|---|---|
| private @Nullable TestInstanceFactory testInstanceFactory | |
| ClassBasedTestDescriptor | back to summary |
|---|---|
| pack-priv ClassBasedTestDescriptor(UniqueId uniqueId, Class<?> testClass, Supplier<String> displayNameSupplier, JupiterConfiguration configuration) | |
| ClassBasedTestDescriptor | back to summary |
|---|---|
| pack-priv ClassBasedTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration) | |
| after | back to summary |
|---|---|
| public final void after(JupiterEngineExecutionContext context) Overrides default org. Doc from org. Execute the after behavior of this node. This method will be called once after execution of this node. The default implementation does nothing.
| |
| before | back to summary |
|---|---|
| public final JupiterEngineExecutionContext before(JupiterEngineExecutionContext context) Overrides default org. Doc from org. Execute the before behavior of this node. This method will be called once before execution of this node. The default implementation returns the supplied
| |
| 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.
| |
| executeAndMaskThrowable | back to summary |
|---|---|
| private void executeAndMaskThrowable(Executable executable) | |
| getDefaultChildExecutionMode | back to summary |
|---|---|
| protected final Optional Overrides org.
| |
| getExclusiveResourceCollector | back to summary |
|---|---|
| public final ExclusiveResourceCollector getExclusiveResourceCollector() Implements org.
| |
| getExplicitExecutionMode | back to summary |
|---|---|
| protected final Optional Overrides org.
| |
| getLegacyReportingName | back to summary |
|---|---|
| public final String getLegacyReportingName() Overrides default org. Doc from org. Get the name of this descriptor in a format that is suitable for legacy reporting infrastructure — for example, for reporting systems built on the Ant-based XML reporting format for JUnit 4. The default implementation delegates to
| |
| getTestClass | back to summary |
|---|---|
| public final Class Implements org.
| |
| getType | back to summary |
|---|---|
| public final TestDescriptor. Implements org. Doc from org. Determine the
| |
| instantiateAndPostProcessTestInstance | back to summary |
|---|---|
| private TestInstances instantiateAndPostProcessTestInstance(JupiterEngineExecutionContext parentExecutionContext, ClassExtensionContext ourExtensionContext, ExtensionRegistry registry, JupiterEngineExecutionContext context) | |
| instantiateTestClass | back to summary |
|---|---|
| protected abstract TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionContextSupplier extensionContext, ExtensionRegistry registry, JupiterEngineExecutionContext context) | |
| instantiateTestClass | back to summary |
|---|---|
| protected final TestInstances instantiateTestClass(Optional<TestInstances> outerInstances, ExtensionRegistry registry, ExtensionContextSupplier extensionContext) | |
| invokeAfterAllCallbacks | back to summary |
|---|---|
| private void invokeAfterAllCallbacks(JupiterEngineExecutionContext context) | |
| invokeAfterAllMethodExecutionExceptionHandlers | back to summary |
|---|---|
| private void invokeAfterAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, Throwable throwable) | |
| invokeAfterAllMethods | back to summary |
|---|---|
| private void invokeAfterAllMethods(JupiterEngineExecutionContext context) | |
| invokeBeforeAllCallbacks | back to summary |
|---|---|
| private void invokeBeforeAllCallbacks(JupiterEngineExecutionContext context) | |
| invokeBeforeAllMethodExecutionExceptionHandlers | back to summary |
|---|---|
| private void invokeBeforeAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, Throwable throwable) | |
| invokeBeforeAllMethods | back to summary |
|---|---|
| private void invokeBeforeAllMethods(JupiterEngineExecutionContext context) | |
| invokeMethodInExtensionContext | back to summary |
|---|---|
| private void invokeMethodInExtensionContext(Method method, ExtensionContext context, ExtensionRegistry registry, InterceptingExecutableInvoker. | |
| invokeTestClassConstructor | back to summary |
|---|---|
| private Object invokeTestClassConstructor(Optional<Object> outerInstance, ExtensionRegistry registry, ExtensionContextSupplier extensionContext) | |
| invokeTestInstanceFactory | back to summary |
|---|---|
| private Object invokeTestInstanceFactory(TestInstanceFactory testInstanceFactory, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext) | |
| invokeTestInstancePostProcessors | back to summary |
|---|---|
| private void invokeTestInstancePostProcessors(Object instance, ExtensionRegistry registry, ExtensionContextSupplier context) | |
| invokeTestInstancePreConstructCallbacks | back to summary |
|---|---|
| private void invokeTestInstancePreConstructCallbacks(TestInstanceFactoryContext factoryContext, ExtensionRegistry registry, ExtensionContextSupplier context) | |
| invokeTestInstancePreDestroyCallbacks | back to summary |
|---|---|
| private void invokeTestInstancePreDestroyCallbacks(JupiterEngineExecutionContext context) | |
| isPerClassLifecycle | back to summary |
|---|---|
| private boolean isPerClassLifecycle(JupiterEngineExecutionContext context) | |
| prepare | back to summary |
|---|---|
| public final JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context) Overrides default org. Implements abstract org. Doc from org. Must be overridden and return a new context with a new
| |
| registerAfterEachMethodAdapters | back to summary |
|---|---|
| private void registerAfterEachMethodAdapters(ExtensionRegistrar registrar) | |
| registerBeforeEachMethodAdapters | back to summary |
|---|---|
| private void registerBeforeEachMethodAdapters(ExtensionRegistrar registrar) | |
| registerMethodsAsExtensions | back to summary |
|---|---|
| private void registerMethodsAsExtensions(List<Method> methods, ExtensionRegistrar registrar, Function<Method, Extension> extensionSynthesizer) | |
| requireLifecycleMethods | back to summary |
|---|---|
| private ClassBasedTestDescriptor. | |
| resolveTestInstanceFactory | back to summary |
|---|---|
| private @Nullable TestInstanceFactory resolveTestInstanceFactory(ExtensionRegistry registry) | |
| setDefaultChildExecutionMode | back to summary |
|---|---|
| public final void setDefaultChildExecutionMode(Node. | |
| synthesizeAfterEachMethodAdapter | back to summary |
|---|---|
| private AfterEachMethodAdapter synthesizeAfterEachMethodAdapter(Method method) | |
| synthesizeBeforeEachMethodAdapter | back to summary |
|---|---|
| private BeforeEachMethodAdapter synthesizeBeforeEachMethodAdapter(Method method) | |
| testInstancesProvider | back to summary |
|---|---|
| private TestInstancesProvider testInstancesProvider(JupiterEngineExecutionContext parentExecutionContext, ClassExtensionContext ourExtensionContext) | |
| validate | back to summary |
|---|---|
| public final void validate(DiscoveryIssueReporter reporter) Implements org. Doc from org. Validate the state of this descriptor and report any issues found to the
supplied
| |
| validateClassTemplateInvocationLifecycleMethods | back to summary |
|---|---|
| protected void validateClassTemplateInvocationLifecycleMethods(DiscoveryIssueReporter reporter) | |
| validateCoreLifecycleMethods | back to summary |
|---|---|
| protected void validateCoreLifecycleMethods(DiscoveryIssueReporter reporter) | |
| validateDisplayNameAnnotation | back to summary |
|---|---|
| private void validateDisplayNameAnnotation(DiscoveryIssueReporter reporter) | |
| validateTags | back to summary |
|---|---|
| private void validateTags(DiscoveryIssueReporter reporter) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv @Nullable Node. | |
| private final List | |
| pack-priv final ExclusiveResourceCollector | |
| pack-priv final TestInstance. | |
| pack-priv final Set | |
| pack-priv final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| defaultChildExecutionMode | back to summary |
|---|---|
| pack-priv @Nullable Node. | |
| discoveryIssues | back to summary |
|---|---|
| private final List<DiscoveryIssue> discoveryIssues | |
| exclusiveResourceCollector | back to summary |
|---|---|
| pack-priv final ExclusiveResourceCollector exclusiveResourceCollector | |
| lifecycle | back to summary |
|---|---|
| pack-priv final TestInstance. | |
| tags | back to summary |
|---|---|
| pack-priv final Set<TestTag> tags | |
| testClass | back to summary |
|---|---|
| pack-priv final Class<?> testClass | |
| ClassInfo | back to summary |
|---|---|
| pack-priv ClassInfo(Class<?> testClass, JupiterConfiguration configuration) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List | |
| private final List | |
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| afterAll | back to summary |
|---|---|
| private final List<Method> afterAll | |
| afterEach | back to summary |
|---|---|
| private final List<Method> afterEach | |
| beforeAll | back to summary |
|---|---|
| private final List<Method> beforeAll | |
| beforeEach | back to summary |
|---|---|
| private final List<Method> beforeEach | |
| discoveryIssues | back to summary |
|---|---|
| private final List<DiscoveryIssue> discoveryIssues | |
| LifecycleMethods | back to summary |
|---|---|
| pack-priv LifecycleMethods(ClassBasedTestDescriptor. | |