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

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

The newest version!
package net.jqwik.engine.discovery;

import org.junit.platform.engine.*;

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

class GroupContainerResolver extends AbstractClassResolver {

	private final GroupDiscoverySpec discoverySpec = new GroupDiscoverySpec();

	@Override
	protected Class requiredParentType() {
		return ContainerClassDescriptor.class;
	}

	@Override
	protected DiscoverySpec> getDiscoverySpec() {
		return discoverySpec;
	}

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

	@Override
	protected ContainerClassDescriptor createContainerDescriptor(Class containerClass, UniqueId uniqueId) {
		return new ContainerClassDescriptor(uniqueId, containerClass, true);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy