All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jqwik.engine.execution.EngineLifecycleContext Maven / Gradle / Ivy

There is a newer version: 1.9.1
Show newest version
package net.jqwik.engine.execution;

import java.lang.reflect.*;
import java.util.*;

import org.junit.platform.engine.*;

import net.jqwik.api.*;
import net.jqwik.api.lifecycle.*;
import net.jqwik.engine.support.*;

public class EngineLifecycleContext extends AbstractLifecycleContext implements ContainerLifecycleContext {

	public EngineLifecycleContext(TestDescriptor engineDescriptor, Reporter reporter, ResolveParameterHook resolveParameterHook) {
		super(reporter, engineDescriptor);
	}

	@Override
	public Optional> optionalContainerClass() {
		return Optional.empty();
	}

	@Override
	public Optional optionalElement() {
		return Optional.empty();
	}

	@Override
	public  T newInstance(Class clazz) {
		return JqwikReflectionSupport.newInstanceWithDefaultConstructor(clazz);
	}

	@Override
	public Optional resolveParameter(Executable executable, int index) {
		return Optional.empty();
	}

	@Override
	public String toString() {
		return toString(ContainerLifecycleContext.class);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy