dev.gradleplugins.GradlePluginDevelopmentTestSuiteFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin-development Show documentation
Show all versions of gradle-plugin-development Show documentation
Gradle plugin development plugins.
package dev.gradleplugins;
import org.gradle.api.Project;
import java.util.Objects;
/**
* Factory to create {@link GradlePluginDevelopmentTestSuite} instances.
*/
public interface GradlePluginDevelopmentTestSuiteFactory {
/**
* Creates {@code GradlePluginDevelopmentTestSuite} instance.
*
* @param name test suite name, must not be null
* @return a new {@link GradlePluginDevelopmentTestSuite} instance, never null
*/
GradlePluginDevelopmentTestSuite create(String name);
/**
* Creates test suite factory for specified project.
*
* @param project base Gradle project for factory, must not be null
* @return a test suite factory, never null
*/
static GradlePluginDevelopmentTestSuiteFactory forProject(Project project) {
Objects.requireNonNull(project);
return new DefaultGradlePluginDevelopmentTestSuiteFactory(project);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy