Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.junitrunner.cucumber;
 
 
 
 
public class CucumberFeatureSuite extends JUnitSuite {
    public CucumberFeatureSuite(Class<?> testClassCucumberPlugin cucumberPluginCucumberFeature cucumberFeatureRuntime runtime) {
        super(testClass);
        this. = cucumberPlugin;
        this. = cucumberFeature;
        for (CucumberTagStatement cucumberTagStatement : cucumberFeature.getFeatureElements()) {
            if (cucumberTagStatement instanceof CucumberScenario) {
                addTask(new CucumberScenarioTest(runtime, (CucumberScenario)cucumberTagStatementcucumberPlugin));
            } else {
                addTask(new CucumberScenarioOutlineSuite(testClassruntime, (CucumberScenarioOutline)cucumberTagStatementcucumberPlugin));
            }
        }
    }
    @Override
    protected Description describeSelf() {
        return Description.createSuiteDescription(getFeatureName(), .getGherkinFeature());
    }
    private String getFeatureName() {
        Feature feature = .getGherkinFeature();
        return feature.getKeyword() + ": " + feature.getName();
    }
New to GrepCode? Check out our FAQ X