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 |
---|---|
private TestInstances |
ClassBasedTestDescriptor.instantiateAndPostProcessTestInstance(JupiterEngineExecutionContext parentExecutionContext,
ExtensionContext extensionContext,
ExtensionRegistry registry,
ExtensionRegistrar registrar) |
protected TestInstances |
NestedClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionRegistrar registrar,
ExtensionContext extensionContext) |
protected TestInstances |
ClassTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionRegistrar registrar,
ExtensionContext extensionContext) |
protected abstract TestInstances |
ClassBasedTestDescriptor.instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionRegistrar registrar,
ExtensionContext extensionContext) |
protected TestInstances |
ClassBasedTestDescriptor.instantiateTestClass(java.util.Optional<TestInstances> outerInstances,
ExtensionRegistry registry,
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> |
JupiterTestDescriptor.invokeExecutionExceptionHandlers(java.lang.Class<E> handlerType,
ExtensionRegistry registry,
java.lang.Throwable throwable,
JupiterTestDescriptor.ExceptionHandlerInvoker<E> handlerInvoker)
Invoke exception handlers for the supplied
Throwable 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) |
Modifier and Type | Method and Description |
---|---|
ConditionEvaluationResult |
ConditionEvaluator.evaluate(ExtensionRegistry extensionRegistry,
JupiterConfiguration configuration,
ExtensionContext context)
Evaluate all
ExecutionCondition extensions registered for the
supplied ExtensionContext . |
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 |
InvocationInterceptorChain.invoke(InvocationInterceptor.Invocation<T> invocation,
ExtensionRegistry extensionRegistry,
InvocationInterceptorChain.InterceptorCall<T> call) |
private <E extends java.lang.reflect.Executable,T> |
ExecutableInvoker.invoke(InvocationInterceptor.Invocation<T> originalInvocation,
ReflectiveInvocationContext<E> invocationContext,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry,
ExecutableInvoker.ReflectiveInterceptorCall<E,T> call) |
<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 supplied
static method 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,
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.
|
Modifier and Type | Class and Description |
---|---|
class |
MutableExtensionRegistry
Default, mutable implementation of
ExtensionRegistry . |