net.jqwik.engine.hooks.lifecycle.MethodParameterResolver Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.hooks.lifecycle;
import java.lang.reflect.*;
import java.util.*;
import net.jqwik.api.lifecycle.*;
import net.jqwik.api.lifecycle.ResolveParameterHook.*;
class MethodParameterResolver {
static Object[] resolveParameters(Method method, LifecycleContext context) {
Optional optionalTry =
context instanceof TryLifecycleContext
? Optional.of((TryLifecycleContext) context)
: Optional.empty();
List