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 TestInstancesClassBasedTestDescriptor. instantiateAndPostProcessTestInstance(JupiterEngineExecutionContext parentExecutionContext, ExtensionContext extensionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ThrowableCollector throwableCollector)protected TestInstancesClassBasedTestDescriptor. instantiateTestClass(java.util.Optional<TestInstances> outerInstances, ExtensionRegistry registry, ExtensionContext extensionContext)protected abstract TestInstancesClassBasedTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext, ThrowableCollector throwableCollector)protected TestInstancesClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext, ThrowableCollector throwableCollector)protected TestInstancesNestedClassTestDescriptor. instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext, ThrowableCollector throwableCollector)private voidClassBasedTestDescriptor. invokeAfterAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)private voidTestMethodTestDescriptor. invokeAfterEachExecutionExceptionHandlers(ExtensionContext context, ExtensionRegistry registry, java.lang.Throwable throwable)private voidClassBasedTestDescriptor. invokeBeforeAllMethodExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)private voidTestMethodTestDescriptor. 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 suppliedThrowableone-by-one until none are left or the throwable to handle has been swallowed.private voidClassBasedTestDescriptor. invokeMethodInExtensionContext(java.lang.reflect.Method method, ExtensionContext context, ExtensionRegistry registry, ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall interceptorCall)private java.lang.ObjectClassBasedTestDescriptor. invokeTestClassConstructor(java.util.Optional<java.lang.Object> outerInstance, ExtensionRegistry registry, ExtensionContext extensionContext)private voidTestMethodTestDescriptor. invokeTestExecutionExceptionHandlers(ExtensionRegistry registry, ExtensionContext context, java.lang.Throwable throwable)private voidClassBasedTestDescriptor. invokeTestInstancePostProcessors(java.lang.Object instance, ExtensionRegistry registry, ExtensionContext context)private TestInstanceFactoryClassBasedTestDescriptor. 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 ConditionEvaluationResultConditionEvaluator. evaluate(ExtensionRegistry extensionRegistry, JupiterConfiguration configuration, ExtensionContext context)Evaluate allExecutionConditionextensions registered for the suppliedExtensionContext.TestInstancesTestInstancesProvider. getTestInstances(ExtensionRegistry extensionRegistry, ExtensionRegistrar extensionRegistrar, ThrowableCollector throwableCollector)<T> TExecutableInvoker. 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> TExecutableInvoker. invoke(java.lang.reflect.Method method, java.lang.Object target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry, ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Method,T> interceptorCall)Invoke the suppliedstaticmethod 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> TInvocationInterceptorChain. invoke(InvocationInterceptor.Invocation<T> invocation, ExtensionRegistry extensionRegistry, InvocationInterceptorChain.InterceptorCall<T> call)voidAfterEachMethodAdapter. invokeAfterEachMethod(ExtensionContext context, ExtensionRegistry registry)voidBeforeEachMethodAdapter. invokeBeforeEachMethod(ExtensionContext context, ExtensionRegistry registry)private java.lang.ObjectExecutableInvoker. 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 classMutableExtensionRegistryDefault, mutable implementation ofExtensionRegistry.
-