net.jqwik.engine.execution.lifecycle.AroundTryLifecycle Maven / Gradle / Ivy
The newest version!
package net.jqwik.engine.execution.lifecycle;
import java.util.*;
import org.opentest4j.*;
import net.jqwik.api.lifecycle.*;
import net.jqwik.engine.support.*;
public class AroundTryLifecycle implements TryLifecycleExecutor {
private final TryExecutor tryExecutor;
private final AroundTryHook aroundTry;
public AroundTryLifecycle(TryExecutor tryExecutor, AroundTryHook aroundTry) {
this.tryExecutor = tryExecutor;
this.aroundTry = aroundTry;
}
@Override
public TryExecutionResult execute(TryLifecycleContext tryLifecycleContext, List