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

org.specrunner.ISpecRunnerPlugin Maven / Gradle / Ivy

There is a newer version: 1.5.17
Show newest version
package org.specrunner;

import org.specrunner.configuration.IConfiguration;
import org.specrunner.plugins.IPlugin;
import org.specrunner.result.IResultSet;

/**
 * Outermost interface of the API. Stands for an executor of specifications in
 * programmatic style.
 * 
 * @author Thiago Santos
 * 
 */
public interface ISpecRunnerPlugin {

    /**
     * Runs a plugin.
     * 
     * @param plugin
     *            The plugin source.
     * @return The result of execution.
     * @throws SpecRunnerException
     *             On execution errors.
     */
    IResultSet run(IPlugin plugin) throws SpecRunnerException;

    /**
     * Runs a specification using a given configuration.
     * 
     * @param plugin
     *            The plugin source.
     * @param configuration
     *            Specific configurations.
     * @return The result of execution.
     * @throws SpecRunnerException
     *             On execution errors.
     */
    IResultSet run(IPlugin plugin, IConfiguration configuration) throws SpecRunnerException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy