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

net.jqwik.engine.discovery.predicates.IsContainerAGroup Maven / Gradle / Ivy

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

import java.util.function.*;

import net.jqwik.api.*;

import static org.junit.platform.commons.support.AnnotationSupport.*;

public class IsContainerAGroup implements Predicate> {

	private final static Predicate> isTopLevelClass = new IsTopLevelClass();

	@Override
	public boolean test(Class candidate) {
		return isGroup(candidate) && !isTopLevelClass.test(candidate);
	}

	private boolean isGroup(Class candidate) {
		return isAnnotated(candidate, Group.class);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy