Package com.olabini.jescov

Source Code of com.olabini.jescov.CucumberData

/*
* See LICENSE file in distribution for copyright and licensing information.
*/
package com.olabini.jescov;

import com.olabini.jescov.console.Runner;

public class CucumberData {
    private CoverageData coverageData;
    private Runner runner;

    public void setCoverageData(CoverageData data) {
        this.coverageData = data;
    }

    public CoverageData getCoverageData() {
        if(this.coverageData == null) {
            coverageData = this.runner.done();
            this.runner = null;
        }
        return this.coverageData;
    }

    public Runner getRunner() {
        if(this.runner == null) {
            this.runner = new Runner(new Configuration());
        }
        return this.runner;
    }
}// CucumberData
TOP

Related Classes of com.olabini.jescov.CucumberData

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.