Module org.junit.jupiter.engine
Class DefaultExecutableInvoker
- java.lang.Object
-
- org.junit.jupiter.engine.execution.DefaultExecutableInvoker
-
- All Implemented Interfaces:
ExecutableInvoker
@API(status=INTERNAL, since="5.9") public class DefaultExecutableInvoker extends java.lang.Object implements ExecutableInvoker
- Since:
- 5.9
-
-
Field Summary
Fields Modifier and Type Field Description private ExtensionContext
extensionContext
private ExtensionRegistry
extensionRegistry
-
Constructor Summary
Constructors Constructor Description DefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
DefaultExecutableInvoker(JupiterEngineExecutionContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
invoke(java.lang.reflect.Constructor<T> constructor, java.lang.Object outerInstance)
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.java.lang.Object
invoke(java.lang.reflect.Method method, java.lang.Object target)
Invoke the supplied method with dynamic parameter resolution.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.junit.jupiter.api.extension.ExecutableInvoker
invoke, invoke
-
-
-
-
Field Detail
-
extensionContext
private final ExtensionContext extensionContext
-
extensionRegistry
private final ExtensionRegistry extensionRegistry
-
-
Constructor Detail
-
DefaultExecutableInvoker
public DefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
-
DefaultExecutableInvoker
public DefaultExecutableInvoker(JupiterEngineExecutionContext context)
-
-
Method Detail
-
invoke
public <T> T invoke(java.lang.reflect.Constructor<T> constructor, java.lang.Object outerInstance)
Description copied from interface:ExecutableInvoker
Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.Use this method when invoking the constructor for an inner class.
- Specified by:
invoke
in interfaceExecutableInvoker
- Parameters:
constructor
- the constructor to invoke and resolve parameters forouterInstance
- the outer instance to supply as the first argument to the constructor; must benull
for top-level classes orstatic
nested classes
-
invoke
public java.lang.Object invoke(java.lang.reflect.Method method, java.lang.Object target)
Description copied from interface:ExecutableInvoker
Invoke the supplied method with dynamic parameter resolution.- Specified by:
invoke
in interfaceExecutableInvoker
- Parameters:
method
- the method to invoke and resolve parameters fortarget
- the target on which the executable will be invoked; can benull
forstatic
methods
-
-