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

tw.teddysoft.ezspec.keyword.When Maven / Gradle / Ivy

The newest version!
package tw.teddysoft.ezspec.keyword;

import java.util.function.Consumer;

/**
 * {@code When} is a class for representing Gherkin When keyword.
 *
 * @author Teddy Chen
 * @since 1.0
 */
public class When extends Step implements ConcurrentGroup {

    public static final String KEYWORD = "When";

    /**
     * Instantiates a new When step.
     *
     * @param description the step description
     * @param continuous  the parameter for deciding to continue executing
     *                    the next step after this step failed
     * @param callback    the step definition
     */
    public When(String description, boolean continuous, Consumer callback){
        super(description, continuous, callback);
    }

    @Override
    public String getName() {
        return KEYWORD;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy