Uses of Interface
org.junit.jupiter.engine.extension.ExtensionRegistry
-
Packages that use ExtensionRegistry Package Description 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.extension Test extensions specific to the JUnit Jupiter test engine. -
-
Uses of ExtensionRegistry in org.junit.jupiter.engine.descriptor
Methods in org.junit.jupiter.engine.descriptor with parameters of type ExtensionRegistry Modifier and Type Method Description private TestInstances
ClassBasedTestDescriptor. instantiateAndPostProcessTestInstance(JupiterEngineExecutionContext parentExecutionContext, ExtensionContext extensionContext, ExtensionRegistry registry, ExtensionRegistrar registrar)
protected TestInstances
ClassBasedTestDescriptor. instantiateTestClass(java.util.Optional<TestInstances> outerInstances, ExtensionRegistry registry, ExtensionContext extensionContext)
protected abstract TestInstances
ClassBasedTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext)
protected TestInstances
ClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext)
protected TestInstances
NestedClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext)
private void
ClassBasedTestDescriptor. invokeAfterAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)
private void
TestMethodTestDescriptor. invokeAfterEachExecutionExceptionHandlers(ExtensionContext context, ExtensionRegistry registry, java.lang.Throwable throwable)
private void
ClassBasedTestDescriptor. invokeBeforeAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)
private void
TestMethodTestDescriptor. invokeBeforeEachExecutionExceptionHandlers(ExtensionContext context, ExtensionRegistry registry, java.lang.Throwable throwable)
(package private) <E extends Extension>
voidJupiterTestDescriptor. invokeExecutionExceptionHandlers(java.lang.Class<E> handlerType, ExtensionRegistry registry, java.lang.Throwable throwable, JupiterTestDescriptor.ExceptionHandlerInvoker<E> handlerInvoker)
Invoke exception handlers for the suppliedThrowable
one-by-one until none are left or the throwable to handle has been swallowed.private void
ClassBasedTestDescriptor. invokeMethodInExtensionContext(java.lang.reflect.Method method, ExtensionContext context, ExtensionRegistry registry, ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall interceptorCall)
private java.lang.Object
ClassBasedTestDescriptor. invokeTestClassConstructor(java.util.Optional<java.lang.Object> outerInstance, ExtensionRegistry registry, ExtensionContext extensionContext)
private void
TestMethodTestDescriptor. invokeTestExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)
private void
ClassBasedTestDescriptor. invokeTestInstancePostProcessors(java.lang.Object instance, ExtensionRegistry registry, ExtensionContext context)
private TestInstanceFactory
ClassBasedTestDescriptor. resolveTestInstanceFactory(ExtensionRegistry registry)
private java.util.List<TestTemplateInvocationContextProvider>
TestTemplateTestDescriptor. validateProviders(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
-
Uses of ExtensionRegistry in org.junit.jupiter.engine.execution
Methods in org.junit.jupiter.engine.execution with parameters of type ExtensionRegistry Modifier and Type Method Description ConditionEvaluationResult
ConditionEvaluator. evaluate(ExtensionRegistry extensionRegistry, JupiterConfiguration configuration, ExtensionContext context)
Evaluate allExecutionCondition
extensions registered for the suppliedExtensionContext
.TestInstances
TestInstancesProvider. getTestInstances(ExtensionRegistry extensionRegistry, ExtensionRegistrar extensionRegistrar)
<T> T
ExecutableInvoker. invoke(java.lang.reflect.Constructor<T> constructor, java.util.Optional<java.lang.Object> outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Constructor<T>,T> interceptorCall)
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.<T> T
ExecutableInvoker. invoke(java.lang.reflect.Method method, java.lang.Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Method,T> interceptorCall)
Invoke the suppliedstatic
method with dynamic parameter resolution.private <E extends java.lang.reflect.Executable,T>
TExecutableInvoker. invoke(InvocationInterceptor.Invocation<T> originalInvocation, ReflectiveInvocationContext<E> invocationContext, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<E,T> call)
<T> T
InvocationInterceptorChain. invoke(InvocationInterceptor.Invocation<T> invocation, ExtensionRegistry extensionRegistry, InvocationInterceptorChain.InterceptorCall<T> call)
void
AfterEachMethodAdapter. invokeAfterEachMethod(ExtensionContext context, ExtensionRegistry registry)
void
BeforeEachMethodAdapter. invokeBeforeEachMethod(ExtensionContext context, ExtensionRegistry registry)
private java.lang.Object
ExecutableInvoker. resolveParameter(ParameterContext parameterContext, java.lang.reflect.Executable executable, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
private java.lang.Object[]
ExecutableInvoker. resolveParameters(java.lang.reflect.Executable executable, java.util.Optional<java.lang.Object> target, java.util.Optional<java.lang.Object> outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Resolve the array of parameters for the supplied executable, target, and outer instance.private java.lang.Object[]
ExecutableInvoker. resolveParameters(java.lang.reflect.Method method, java.util.Optional<java.lang.Object> target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
Resolve the array of parameters for the supplied method and target. -
Uses of ExtensionRegistry in org.junit.jupiter.engine.extension
Classes in org.junit.jupiter.engine.extension that implement ExtensionRegistry Modifier and Type Class Description class
MutableExtensionRegistry
Default, mutable implementation ofExtensionRegistry
.
-