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

net.jqwik.engine.discovery.TopLevelContainerResolver Maven / Gradle / Ivy

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

import org.junit.platform.engine.*;

import net.jqwik.engine.descriptor.*;
import net.jqwik.engine.discovery.specs.*;

class TopLevelContainerResolver extends AbstractClassResolver {

	private final TopLevelContainerDiscoverySpec discoverySpec = new TopLevelContainerDiscoverySpec();

	protected Class requiredParentType() {
		return TestDescriptor.class;
	}

	protected DiscoverySpec> getDiscoverySpec() {
		return discoverySpec;
	}

	protected UniqueId createUniqueId(Class testClass, TestDescriptor parent) {
		return JqwikUniqueIDs.appendContainer(parent.getUniqueId(), testClass);
	}

	protected ContainerClassDescriptor createContainerDescriptor(Class containerClass, UniqueId uniqueId) {
		return new ContainerClassDescriptor(uniqueId, containerClass, false);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy