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

com.github.timm.cucumber.generate.ScenarioAndLocation Maven / Gradle / Ivy

There is a newer version: 5.0.0
Show newest version
package com.github.timm.cucumber.generate;

import gherkin.ast.Location;
import gherkin.ast.ScenarioDefinition;

/**
 * A single test to create within a test run.
 */
public class ScenarioAndLocation {

    /**
     * The scenario this test case belongs to.
     */
    private final ScenarioDefinition scenarioDefinition;

    /**
     * Where this test case came from - Either the scenario, or the table
     * row in a scenario outline's examples block.
     */
    private final Location location;

    public ScenarioAndLocation(ScenarioDefinition scenarioDefinition, Location location) {
        this.scenarioDefinition = scenarioDefinition;
        this.location = location;
    }

    public ScenarioDefinition getScenario() {
        return scenarioDefinition;
    }

    public Location getLocation() {
        return location;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy