cucumber.runtime.UndefinedStepDefinitionMatch Maven / Gradle / Ivy
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;
}
}