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.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 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 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.ConditionEvaluationResult
ExecutionCondition. evaluateExecutionCondition(ExtensionContext context)
Evaluate this condition for the suppliedExtensionContext
.void
TestExecutionExceptionHandler. handleTestExecutionException(ExtensionContext context, java.lang.Throwable throwable)
Handle the suppliedthrowable
.void
TestInstancePostProcessor. 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.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
. -
Uses of ExtensionContext in org.junit.jupiter.engine.descriptor
Classes in org.junit.jupiter.engine.descriptor that implement ExtensionContext Modifier and Type Class Description class
ClassExtensionContext
class
JupiterEngineExtensionContext
class
MethodExtensionContext
Methods in org.junit.jupiter.engine.descriptor with parameters of type ExtensionContext Modifier and Type Method Description protected java.lang.Object
ClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
protected java.lang.Object
NestedClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
Constructors in org.junit.jupiter.engine.descriptor with parameters of type ExtensionContext Constructor Description ClassExtensionContext(ExtensionContext parent, EngineExecutionListener engineExecutionListener, ClassTestDescriptor testDescriptor, TestInstance.Lifecycle lifecycle, ConfigurationParameters configurationParameters, ThrowableCollector throwableCollector)
ClassExtensionContext(ExtensionContext parent, EngineExecutionListener engineExecutionListener, ClassTestDescriptor testDescriptor, ConfigurationParameters configurationParameters, ThrowableCollector throwableCollector)
Create a newClassExtensionContext
withTestInstance.Lifecycle.PER_METHOD
.MethodExtensionContext(ExtensionContext parent, EngineExecutionListener engineExecutionListener, TestMethodTestDescriptor testDescriptor, ConfigurationParameters configurationParameters, java.lang.Object testInstance, ThrowableCollector throwableCollector)
-
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, ConfigurationParameters configurationParameters, ExtensionContext context)
Evaluate allExecutionCondition
extensions registered for the suppliedExtensionContext
.<T> T
ExecutableInvoker. invoke(java.lang.reflect.Constructor<T> constructor, java.lang.Object outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.<T> T
ExecutableInvoker. invoke(java.lang.reflect.Constructor<T> constructor, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with dynamic parameter resolution.java.lang.Object
ExecutableInvoker. invoke(java.lang.reflect.Method method, java.lang.Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Invoke the supplied method on the supplied target object with dynamic parameter resolution.java.lang.Object
ExecutableInvoker. invoke(java.lang.reflect.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.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, java.lang.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 java.util.stream.Stream<? extends Arguments>
ArgumentsProvider. provideArguments(ExtensionContext context)
-