net.jqwik.engine.execution.DefaultTryLifecycleContext Maven / Gradle / Ivy
package net.jqwik.engine.execution;
import java.lang.annotation.*;
import java.lang.reflect.*;
import java.util.*;
import java.util.function.*;
import net.jqwik.api.*;
import net.jqwik.api.lifecycle.*;
import static net.jqwik.engine.execution.LifecycleContextSupport.*;
public class DefaultTryLifecycleContext implements TryLifecycleContext {
private final PropertyLifecycleContext propertyContext;
public DefaultTryLifecycleContext(PropertyLifecycleContext propertyContext) {
this.propertyContext = propertyContext;
}
@Override
public Method targetMethod() {
return propertyContext.targetMethod();
}
@Override
public Class> containerClass() {
return propertyContext.containerClass();
}
@Override
public Object testInstance() {
return propertyContext.testInstance();
}
@Override
public List