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

net.jqwik.engine.execution.ContainerClassLifecycleContext 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 net.jqwik.api.lifecycle.*;
import net.jqwik.engine.descriptor.*;

public class ContainerClassLifecycleContext implements ContainerLifecycleContext {
	private final ContainerClassDescriptor classDescriptor;

	public ContainerClassLifecycleContext(ContainerClassDescriptor classDescriptor) {
		this.classDescriptor = classDescriptor;
	}

	@Override
	public String label() {
		return classDescriptor.getDisplayName();
	}

	@Override
	public Optional annotatedElement() {
		return Optional.of(classDescriptor.getContainerClass());
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy