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

cucumber.runtime.UndefinedStepDefinitionMatch Maven / Gradle / Ivy

There is a newer version: 7.18.1
Show newest version
package cucumber.runtime;

import cucumber.api.Scenario;
import gherkin.pickles.PickleStep;

import java.util.Collections;

public class UndefinedStepDefinitionMatch extends StepDefinitionMatch {

    public UndefinedStepDefinitionMatch(PickleStep step) {
        super(Collections.emptyList(), new NoStepDefinition(), null, step, null);
    }

    @Override
    public void runStep(String language, Scenario scenario) throws Throwable {
        throw new UndefinedStepDefinitionException();
    }

    @Override
    public void dryRunStep(String language, Scenario scenario) throws Throwable {
        runStep(language, scenario);
    }

    @Override
    public Match getMatch() {
        return Match.UNDEFINED;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy