com.trivago.vo.SingleScenario Maven / Gradle / Ivy
Go to download
Plugin for slicing Cucumber features into the smallest possible parts for parallel test execution.
/*
* Copyright 2017 trivago N.V.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.trivago.vo;
import java.util.List;
/**
* Holds a complete single scenario with all information.
*/
public final class SingleScenario {
private final String featureName;
private final String featureFilePath;
private final String featureLanguage;
private final String featureDescription;
private final String scenarioName;
private final String scenarioDescription;
private final List featureTags;
private final List backgroundSteps;
private List scenarioTags;
private List exampleTags;
private List steps;
public SingleScenario(
final String featureName,
final String featureFilePath,
final String featureLanguage,
final String featureDescription,
final String scenarioName,
final String scenarioDescription,
final List featureTags,
final List backgroundSteps
) {
this.featureName = featureName;
this.featureFilePath = featureFilePath;
this.featureLanguage = featureLanguage;
this.featureDescription = featureDescription;
this.scenarioName = scenarioName;
this.scenarioDescription = scenarioDescription;
this.featureTags = featureTags;
this.backgroundSteps = backgroundSteps;
}
public List getFeatureTags() {
return featureTags;
}
public String getFeatureName() {
return featureName;
}
public String getFeatureFilePath() {
return featureFilePath;
}
public String getFeatureLanguage() {
return featureLanguage;
}
public String getFeatureDescription() {
return featureDescription;
}
public List getScenarioTags() {
return scenarioTags;
}
public void setScenarioTags(final List scenarioTags) {
this.scenarioTags = scenarioTags;
}
public String getScenarioName() {
return scenarioName;
}
public String getScenarioDescription() {
return scenarioDescription;
}
public List getSteps() {
return steps;
}
public void setSteps(final List steps) {
this.steps = steps;
}
public List getBackgroundSteps() {
return backgroundSteps;
}
public List getExampleTags() {
return exampleTags;
}
public void setExampleTags(final List exampleTags) {
this.exampleTags = exampleTags;
}
}