Class DefaultExecutableInvoker
java.lang.Object
org.junit.jupiter.engine.execution.DefaultExecutableInvoker
- All Implemented Interfaces:
ExecutableInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) -
Method Summary
Modifier and TypeMethodDescription<T> Tinvoke(Constructor<T> constructor, @Nullable Object outerInstance) Invoke the supplied constructor with the supplied outer instance and dynamic parameter resolution.@Nullable ObjectInvoke the supplied method with dynamic parameter resolution.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.junit.jupiter.api.extension.ExecutableInvoker
invoke, invoke
-
Constructor Details
-
DefaultExecutableInvoker
public DefaultExecutableInvoker(ExtensionContext extensionContext, ExtensionRegistry extensionRegistry)
-
-
Method Details
-
invoke
Description copied from interface:ExecutableInvokerInvoke 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:
invokein interfaceExecutableInvoker- Parameters:
constructor- the constructor to invoke and resolve parameters forouterInstance- the outer instance to supply as the first argument to the constructor; must benullfor top-level classes orstaticnested classes
-
invoke
Description copied from interface:ExecutableInvokerInvoke the supplied method with dynamic parameter resolution.- Specified by:
invokein interfaceExecutableInvoker- Parameters:
method- the method to invoke and resolve parameters fortarget- the target on which the executable will be invoked; can benullforstaticmethods
-