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

dev.gradleplugins.GradlePluginDevelopmentTestSuiteFactory Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
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