Package org.junit.jupiter.engine.extension
Test extensions specific to the JUnit Jupiter test engine.
-
Interface Summary Interface Description ExtensionContextInternal ExtensionContextInternalextends theExtensionContextwith internal API.ExtensionRegistrar AnExtensionRegistraris used to register extensions.ExtensionRegistry AnExtensionRegistryholds all registered extensions (i.e.MutableExtensionRegistry.Entry PreInterruptCallbackInvocation TempDirectory.FileOperations TimeoutExtension.TimeoutProvider -
Class Summary Class Description AutoCloseExtension AutoCloseExtensionis a JUnit Jupiter extension that closes resources if a field in a test class is annotated with@AutoClose.DefaultPreInterruptContext DefaultRepetitionInfo Default implementation ofRepetitionInfo.DefaultTestReporter DisabledCondition ExecutionConditionthat supports the@Disabledannotation.MutableExtensionRegistry Default, mutable implementation ofExtensionRegistry.MutableExtensionRegistry.LateInitEntry MutableExtensionRegistry.LateInitExtensions PreInterruptCallbackInvocationFactory PreInterruptThreadDumpPrinter The default implementation forPreInterruptCallback, which will print the stacks of allThreads toSystem.out.RepeatedTestDisplayNameFormatter Display name formatter for a@RepeatedTest.RepeatedTestExtension TestTemplateInvocationContextProviderthat supports the@RepeatedTestannotation.RepeatedTestInvocationContext TestTemplateInvocationContextfor a@RepeatedTest.RepetitionExtension RepetitionExtensionimplements the following extension APIs to support repetitions of a@RepeatedTestmethod.SameThreadTimeoutInvocation<T> SameThreadTimeoutInvocation.InterruptTask SeparateThreadTimeoutInvocation<T> TempDirectory TempDirectoryis a JUnit Jupiter extension that creates and cleans up temporary directories if a field in a test class or a parameter in a test class constructor, lifecycle method, or test method is annotated with@TempDir.TempDirectory.CloseablePath TempDirectory.FailureTracker TempDirectory.FieldContext TestInfoParameterResolver ParameterResolverthat resolves theTestInfofor the currently executing test.TestInfoParameterResolver.DefaultTestInfo TestReporterParameterResolver ParameterResolverthat injects aTestReporter.TimeoutConfiguration TimeoutDuration TimeoutDurationParser TimeoutExceptionFactory TimeoutExtension TimeoutInvocationFactory TimeoutInvocationFactory.ExecutorResource TimeoutInvocationFactory.SingleThreadExecutorResource TimeoutInvocationFactory.TimeoutInvocationParameters<T> -
Enum Summary Enum Description TempDirectory.Scope