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 Object
implements ExecutableInvoker
- Since:
- 5.9
-
Constructor Summary
ConstructorDescriptionDefaultExecutableInvoker
(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) -
Method Summary
Modifier and TypeMethodDescription<T> T
invoke
(Constructor<T> constructor, Object outerInstance) Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.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
-
Constructor Details
-
DefaultExecutableInvoker
public DefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) -
DefaultExecutableInvoker
-
-
Method Details
-
invoke
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
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
-