Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.github.junitrunner.cucumber;
 
 
 
 
public class CucumberRunnerListener extends BaseRunnerListener {
    private final Formatter formatter;
    private final Runtime runtime;
    public CucumberRunnerListener(Formatter formatterRuntime runtime) {
        this. = formatter;
        this. = runtime;
    }
    @Override
    public void testClassFinished(Description description) {
        .done();
        .close();
        new SummaryPrinter(.).print();
    }
    @Override
    public void taskStarted(Task task) {
        if (task instanceof CucumberFeatureSuite) {
            CucumberFeatureSuite feature = (CucumberFeatureSuitetask;
            .uri(feature.cucumberFeature.getUri());
            .feature(feature.cucumberFeature.getGherkinFeature());
        }
    }
    @Override
    public void taskFinished(Task taskThrowable failure) {
        if (task instanceof CucumberFeatureSuite) {
            .eof();
        }
    }
New to GrepCode? Check out our FAQ X