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.
|
Modifier and Type | Method and Description |
---|---|
protected ExtensionRegistry |
TestMethodTestDescriptor.populateNewExtensionRegistry(JupiterEngineExecutionContext context) |
protected ExtensionRegistry |
TestTemplateInvocationTestDescriptor.populateNewExtensionRegistry(JupiterEngineExecutionContext context) |
(package private) static ExtensionRegistry |
ExtensionUtils.populateNewExtensionRegistryFromExtendWithAnnotation(ExtensionRegistry parentRegistry,
java.lang.reflect.AnnotatedElement annotatedElement)
Populate a new
ExtensionRegistry from extension types declared via
@ExtendWith on the supplied AnnotatedElement . |
Modifier and Type | Method and Description |
---|---|
private TestInstances |
ClassTestDescriptor.instantiateAndPostProcessTestInstance(JupiterEngineExecutionContext parentExecutionContext,
ExtensionContext extensionContext,
ExtensionRegistry registry) |
protected TestInstances |
ClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
protected TestInstances |
NestedClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
protected TestInstances |
ClassTestDescriptor.instantiateTestClass(java.util.Optional<TestInstances> outerInstances,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
private void |
ClassTestDescriptor.invokeMethodInExtensionContext(java.lang.reflect.Method method,
ExtensionContext context,
ExtensionRegistry registry) |
private java.lang.Object |
ClassTestDescriptor.invokeTestClassConstructor(java.util.Optional<java.lang.Object> outerInstance,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
private void |
TestMethodTestDescriptor.invokeTestExecutionExceptionHandlers(ExtensionRegistry registry,
ExtensionContext context,
java.lang.Throwable ex) |
private void |
ClassTestDescriptor.invokeTestInstancePostProcessors(java.lang.Object instance,
ExtensionRegistry registry,
ExtensionContext context) |
(package private) static ExtensionRegistry |
ExtensionUtils.populateNewExtensionRegistryFromExtendWithAnnotation(ExtensionRegistry parentRegistry,
java.lang.reflect.AnnotatedElement annotatedElement)
Populate a new
ExtensionRegistry from extension types declared via
@ExtendWith on the supplied AnnotatedElement . |
private void |
ClassTestDescriptor.registerAfterEachMethodAdapters(ExtensionRegistry registry) |
private void |
ClassTestDescriptor.registerBeforeEachMethodAdapters(ExtensionRegistry registry) |
(package private) static void |
ExtensionUtils.registerExtensionsFromFields(ExtensionRegistry registry,
java.lang.Class<?> clazz,
java.lang.Object instance)
Register extensions in the supplied registry from fields in the supplied
class that are annotated with
@RegisterExtension . |
private void |
ClassTestDescriptor.registerMethodsAsExtensions(java.util.List<java.lang.reflect.Method> methods,
ExtensionRegistry registry,
java.util.function.Function<java.lang.reflect.Method,Extension> extensionSynthesizer) |
private TestInstanceFactory |
ClassTestDescriptor.resolveTestInstanceFactory(ExtensionRegistry registry) |
private TestInstancesProvider |
ClassTestDescriptor.testInstancesProvider(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ClassExtensionContext extensionContext) |
private java.util.List<TestTemplateInvocationContextProvider> |
TestTemplateTestDescriptor.validateProviders(ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry) |
Modifier and Type | Field and Description |
---|---|
(package private) ExtensionRegistry |
JupiterEngineExecutionContext.State.extensionRegistry |
Modifier and Type | Method and Description |
---|---|
ExtensionRegistry |
JupiterEngineExecutionContext.getExtensionRegistry() |
Modifier and Type | Method and Description |
---|---|
ConditionEvaluationResult |
ConditionEvaluator.evaluate(ExtensionRegistry extensionRegistry,
JupiterConfiguration configuration,
ExtensionContext context)
Evaluate all
ExecutionCondition extensions registered for the
supplied ExtensionContext . |
<T> T |
ExecutableInvoker.invoke(java.lang.reflect.Constructor<T> constructor,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied constructor with dynamic parameter resolution.
|
<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.
|
java.lang.Object |
ExecutableInvoker.invoke(java.lang.reflect.Method method,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Invoke the supplied
static method 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.
|
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,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Resolve the array of parameters for the supplied executable and target.
|
private java.lang.Object[] |
ExecutableInvoker.resolveParameters(java.lang.reflect.Executable executable,
java.util.Optional<java.lang.Object> target,
java.lang.Object outerInstance,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry)
Resolve the array of parameters for the supplied executable, target, and
outer instance.
|
JupiterEngineExecutionContext.Builder |
JupiterEngineExecutionContext.Builder.withExtensionRegistry(ExtensionRegistry extensionRegistry) |
Modifier and Type | Method and Description |
---|---|
TestInstances |
TestInstancesProvider.getTestInstances(java.util.Optional<ExtensionRegistry> childExtensionRegistry) |
Modifier and Type | Field and Description |
---|---|
private ExtensionRegistry |
ExtensionRegistry.parent |
Modifier and Type | Method and Description |
---|---|
static ExtensionRegistry |
ExtensionRegistry.createRegistryFrom(ExtensionRegistry parentRegistry,
java.util.List<java.lang.Class<? extends Extension>> extensionTypes)
Factory for creating and populating a new registry from a list of
extension types and a parent registry.
|
static ExtensionRegistry |
ExtensionRegistry.createRegistryWithDefaultExtensions(JupiterConfiguration configuration)
Factory for creating and populating a new root registry with the default
extensions.
|
Modifier and Type | Method and Description |
---|---|
static ExtensionRegistry |
ExtensionRegistry.createRegistryFrom(ExtensionRegistry parentRegistry,
java.util.List<java.lang.Class<? extends Extension>> extensionTypes)
Factory for creating and populating a new registry from a list of
extension types and a parent registry.
|
private static void |
ExtensionRegistry.registerAutoDetectedExtensions(ExtensionRegistry extensionRegistry) |
Constructor and Description |
---|
ExtensionRegistry(ExtensionRegistry parent) |