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.engine.descriptor Test descriptors used within the JUnit Jupiter test engine.org.junit.jupiter.engine.execution Internal classes for test execution within the JUnit Jupiter test engine.org.junit.jupiter.engine.script Scripting support specific to the JUnit Jupiter test engine.org.junit.jupiter.migrationsupport.conditions Extensions which provide support for conditional test execution features of JUnit 4 (e.g., the@Ignore
annotation) within JUnit Jupiter.org.junit.jupiter.migrationsupport.rules Extensions which provide (limited) support for JUnit 4 rules within JUnit Jupiter.org.junit.jupiter.params.provider ArgumentsProvider
implementations and their correspondingArgumentsSource
annotations. -
-
Uses of ExtensionContext in org.junit.jupiter.api.extension
Methods in org.junit.jupiter.api.extension that return ExtensionContext Modifier and Type Method Description ExtensionContext
ExtensionContext. getRoot()
Get the rootExtensionContext
.Methods in org.junit.jupiter.api.extension that return types with arguments of type ExtensionContext Modifier and Type Method Description 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 void
AfterAllCallback. afterAll(ExtensionContext context)
Callback that is invoked once after all tests in the current container.void
AfterEachCallback. afterEach(ExtensionContext context)
Callback that is invoked after each test has been invoked.void
AfterTestExecutionCallback. afterTestExecution(ExtensionContext context)
Callback that is invoked immediately after each test has been executed.void
BeforeAllCallback. beforeAll(ExtensionContext context)
Callback that is invoked once before all tests in the current container.void
BeforeEachCallback. beforeEach(ExtensionContext context)
Callback that is invoked before each test is invoked.void
BeforeTestExecutionCallback. beforeTestExecution(ExtensionContext context)
Callback that is invoked immediately before each test is executed.Object
TestInstanceFactory. createTestInstance(TestInstanceFactoryContext factoryContext, ExtensionContext extensionContext)
Callback for creating a test instance for the supplied context.ConditionEvaluationResult
ExecutionCondition. evaluateExecutionCondition(ExtensionContext context)
Evaluate this condition for the suppliedExtensionContext
.void
TestExecutionExceptionHandler. handleTestExecutionException(ExtensionContext context, Throwable throwable)
Handle the suppliedthrowable
.void
TestInstancePostProcessor. postProcessTestInstance(Object testInstance, ExtensionContext context)
Callback for post-processing the supplied test instance.Stream<TestTemplateInvocationContext>
TestTemplateInvocationContextProvider. provideTestTemplateInvocationContexts(ExtensionContext context)
Provide invocation contexts for the test template method represented by the suppliedcontext
.Object
ParameterResolver. resolveParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
Resolve an argument for theParameter
in the suppliedParameterContext
for the suppliedExtensionContext
.boolean
ParameterResolver. supportsParameter(ParameterContext parameterContext, ExtensionContext extensionContext)
Determine if this resolver supports resolution of an argument for theParameter
in the suppliedParameterContext
for the suppliedExtensionContext
.boolean
TestTemplateInvocationContextProvider. supportsTestTemplate(ExtensionContext context)
Determine if this provider supports providing invocation contexts for the test template method represented by the suppliedcontext
.void
TestWatcher. testAborted(ExtensionContext context, Throwable cause)
Invoked after a test has been aborted.void
TestWatcher. testDisabled(ExtensionContext context, Optional<String> reason)
Invoked after a disabled test has been skipped.void
TestWatcher. testFailed(ExtensionContext context, Throwable cause)
Invoked after a test has failed.void
TestWatcher. testSuccessful(ExtensionContext context)
Invoked after a test has completed successfully. -
Uses of ExtensionContext in org.junit.jupiter.engine.descriptor
Methods in org.junit.jupiter.engine.descriptor with parameters of type ExtensionContext Modifier and Type Method Description protected TestInstances
ClassTestDescriptor. instantiateTestClass(Optional<TestInstances> outerInstances, ExtensionRegistry registry, ExtensionContext extensionContext)
protected TestInstances
ClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
protected TestInstances
NestedClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
-
Uses of ExtensionContext in org.junit.jupiter.engine.execution
Methods in org.junit.jupiter.engine.execution that return ExtensionContext Modifier and Type Method Description ExtensionContext
JupiterEngineExecutionContext. getExtensionContext()
Methods in org.junit.jupiter.engine.execution with parameters of type ExtensionContext Modifier and Type Method Description ConditionEvaluationResult
ConditionEvaluator. evaluate(ExtensionRegistry extensionRegistry, JupiterConfiguration configuration, ExtensionContext context)
Evaluate allExecutionCondition
extensions registered for the suppliedExtensionContext
.<T> T
ExecutableInvoker. invoke(Constructor<T> constructor, Object outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.<T> T
ExecutableInvoker. invoke(Constructor<T> constructor, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with dynamic parameter resolution.Object
ExecutableInvoker. invoke(Method method, Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied method on the supplied target object with dynamic parameter resolution.Object
ExecutableInvoker. invoke(Method method, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the suppliedstatic
method with dynamic parameter resolution.void
AfterEachMethodAdapter. invokeAfterEachMethod(ExtensionContext context, ExtensionRegistry registry)
void
BeforeEachMethodAdapter. invokeBeforeEachMethod(ExtensionContext context, ExtensionRegistry registry)
JupiterEngineExecutionContext.Builder
JupiterEngineExecutionContext.Builder. withExtensionContext(ExtensionContext extensionContext)
-
Uses of ExtensionContext in org.junit.jupiter.engine.script
Constructors in org.junit.jupiter.engine.script with parameters of type ExtensionContext Constructor Description ConfigurationParameterAccessor(ExtensionContext context)
-
Uses of ExtensionContext in org.junit.jupiter.migrationsupport.conditions
Methods in org.junit.jupiter.migrationsupport.conditions with parameters of type ExtensionContext Modifier and Type Method Description ConditionEvaluationResult
IgnoreCondition. evaluateExecutionCondition(ExtensionContext context)
Containers/tests are disabled if@Ignore
is present on the test class or method. -
Uses of ExtensionContext in org.junit.jupiter.migrationsupport.rules
Methods in org.junit.jupiter.migrationsupport.rules with parameters of type ExtensionContext Modifier and Type Method Description void
ExpectedExceptionSupport. afterEach(ExtensionContext context)
void
ExternalResourceSupport. afterEach(ExtensionContext context)
void
VerifierSupport. afterEach(ExtensionContext context)
void
ExternalResourceSupport. beforeEach(ExtensionContext context)
void
ExpectedExceptionSupport. handleTestExecutionException(ExtensionContext context, Throwable throwable)
-
Uses of ExtensionContext in org.junit.jupiter.params.provider
Methods in org.junit.jupiter.params.provider with parameters of type ExtensionContext Modifier and Type Method Description Stream<? extends Arguments>
ArgumentsProvider. provideArguments(ExtensionContext context)
-