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

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

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

import java.util.function.*;

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

public class IsPotentialTestContainer implements Predicate> {

	@Override
	public boolean test(Class candidate) {
		if (isAbstract(candidate))
			return false;
		if (isPrivate(candidate))
			return false;
		if (candidate.isEnum())
			return false;
		if (candidate.isLocalClass())
			return false;
		return !candidate.isAnonymousClass();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy