Uses of Interface
org.junit.jupiter.api.extension.ExtensionContext
-
Packages that use ExtensionContext Package Description org.junit.jupiter.api.extension JUnit Jupiter API for writing extensions.org.junit.jupiter.api.support.io IO-related support classes and built-in extensions. -
-
Uses of ExtensionContext in org.junit.jupiter.api.extension
Methods in org.junit.jupiter.api.extension that return ExtensionContext Modifier and Type Method Description ExtensionContextExtensionContext. getRoot()Get the rootExtensionContext.Methods in org.junit.jupiter.api.extension that return types with arguments of type ExtensionContext Modifier and Type Method Description java.util.Optional<ExtensionContext>ExtensionContext. getParent()Get the parent extension context, if available.Methods in org.junit.jupiter.api.extension with parameters of type ExtensionContext Modifier and Type Method Description voidAfterAllCallback. afterAll(ExtensionContext context)Callback that is invoked once after all tests in the current container.voidAfterEachCallback. afterEach(ExtensionContext context)Callback that is invoked after each test has been invoked.voidAfterTestExecutionCallback. afterTestExecution(ExtensionContext context)Callback that is invoked immediately after each test has been executed.voidBeforeAllCallback. beforeAll(ExtensionContext context)Callback that is invoked once before all tests in the current container.voidBeforeEachCallback. beforeEach(ExtensionContext context)Callback that is invoked before each test is invoked.voidBeforeTestExecutionCallback. beforeTestExecution(ExtensionContext context)Callback that is invoked immediately before each test is executed.java.lang.ObjectTestInstanceFactory. createTestInstance(TestInstanceFactoryContext factoryContext, ExtensionContext extensionContext)Callback for creating a test instance for the supplied context.ConditionEvaluationResultExecutionCondition. evaluateExecutionCondition(ExtensionContext context)Evaluate this condition for the suppliedExtensionContext.voidTestExecutionExceptionHandler. handleTestExecutionException(ExtensionContext context, java.lang.Throwable throwable)Handle the suppliedthrowable.voidTestInstancePostProcessor. postProcessTestInstance(java.lang.Object testInstance, ExtensionContext context)Callback for post-processing the supplied test instance.java.util.stream.Stream<TestTemplateInvocationContext>TestTemplateInvocationContextProvider. provideTestTemplateInvocationContexts(ExtensionContext context)Provide invocation contexts for the test template method represented by the suppliedcontext.java.lang.ObjectParameterResolver. resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)Resolve an argument for theParameterin the suppliedParameterContextfor the suppliedExtensionContext.booleanParameterResolver. supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)Determine if this resolver supports resolution of an argument for theParameterin the suppliedParameterContextfor the suppliedExtensionContext.booleanTestTemplateInvocationContextProvider. supportsTestTemplate(ExtensionContext context)Determine if this provider supports providing invocation contexts for the test template method represented by the suppliedcontext.voidTestWatcher. testAborted(ExtensionContext context, java.lang.Throwable cause)Invoked after a test has been aborted.voidTestWatcher. testDisabled(ExtensionContext context, java.util.Optional<java.lang.String> reason)Invoked after a disabled test has been skipped.voidTestWatcher. testFailed(ExtensionContext context, java.lang.Throwable cause)Invoked after a test has failed.voidTestWatcher. testSuccessful(ExtensionContext context)Invoked after a test has completed successfully. -
Uses of ExtensionContext in org.junit.jupiter.api.support.io
Methods in org.junit.jupiter.api.support.io with parameters of type ExtensionContext Modifier and Type Method Description voidTempDirectory. beforeAll(ExtensionContext context)Perform field injection for non-private,staticfields (i.e., class fields) of typePathorFilethat are annotated with@TempDir.voidTempDirectory. beforeEach(ExtensionContext context)Perform field injection for non-private, non-static fields (i.e., instance fields) of typePathorFilethat are annotated with@TempDir.java.nio.file.PathTempDirectory.ParentDirProvider. get(TempDirectory.TempDirContext tempDirContext, ExtensionContext extensionContext)Get the parent directory for all temporary directories created by theTempDirectoryextension this is used with.java.lang.ObjectTempDirectory. resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)Resolve the current temporary directory for theParameterin the suppliedParameterContext.booleanTempDirectory. supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
-