Class ParameterResolutionUtils
java.lang.Object
org.junit.jupiter.engine.execution.ParameterResolutionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Object[]resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied executable, target, and outer instance.static @Nullable Object[]resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry) static @Nullable Object[]resolveParameters(Method method, Optional<Object> target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied method and target.
-
Method Details
-
resolveParameters
public static @Nullable Object[] resolveParameters(Method method, Optional<Object> target, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied method and target.- Parameters:
method- the method for which to resolve parameterstarget- anOptionalcontaining the target on which the executable will be invoked; nevernullbut should be empty for static methods and constructorsextensionContext- the currentExtensionContextextensionRegistry- theExtensionRegistryto retrieveParameterResolversfrom- Returns:
- the array of Objects to be used as parameters in the executable
invocation; never
nullthough potentially empty
-
resolveParameters
public static @Nullable Object[] resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContext extensionContext, ExtensionRegistry extensionRegistry) Resolve the array of parameters for the supplied executable, target, and outer instance.- Parameters:
executable- the executable for which to resolve parameterstarget- anOptionalcontaining the target on which the executable will be invoked; nevernullbut should be empty for static methods and constructorsouterInstance- the outer instance that will be supplied as the first argument to a constructor for an inner class; should benullfor methods and constructors for top-level or static classesextensionContext- the currentExtensionContextextensionRegistry- theExtensionRegistryto retrieveParameterResolversfrom- Returns:
- the array of Objects to be used as parameters in the executable
invocation; never
nullthough potentially empty
-
resolveParameters
public static @Nullable Object[] resolveParameters(Executable executable, Optional<Object> target, Optional<Object> outerInstance, ExtensionContextSupplier extensionContext, ExtensionRegistry extensionRegistry)
-