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

io.cucumber.testng.CucumberExceptionWrapper Maven / Gradle / Ivy

The newest version!
package io.cucumber.testng;

import io.cucumber.core.exception.CucumberException;

/**
 * The only purpose of this class is to move parse errors from the DataProvider
 * to the test execution of the TestNG tests.
 *
 * @see TestNGCucumberRunner#provideScenarios()
 */
final class CucumberExceptionWrapper implements PickleWrapper {

    private final CucumberException exception;

    CucumberExceptionWrapper(CucumberException e) {
        this.exception = e;
    }

    @Override
    public Pickle getPickle() {
        throw this.exception;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy