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

cucumber.runner.FailedPickleStepInstantiationMatch Maven / Gradle / Ivy

There is a newer version: 7.17.0
Show newest version
package cucumber.runner;

import cucumber.api.Scenario;
import gherkin.pickles.PickleStep;
import io.cucumber.stepexpression.Argument;

import java.util.Collections;

final class FailedPickleStepInstantiationMatch extends PickleStepDefinitionMatch {
    private final Throwable throwable;

    FailedPickleStepInstantiationMatch(String uri, PickleStep step, Throwable throwable) {
        super(Collections.emptyList(), new NoStepDefinition(), uri, step);
        this.throwable = removeFrameworkFramesAndAppendStepLocation(throwable, getStepLocation());
    }

    @Override
    public void runStep(Scenario scenario) throws Throwable {
        throw throwable;
    }
    public void dryRunStep(Scenario scenario) throws Throwable {
        runStep(scenario);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy