Package com.olabini.jescov.generators

Examples of com.olabini.jescov.generators.JsonGenerator


    }

    @Then("^the generated JSON should be:$")
    public void the_generated_JSON_should_be(String expectedJSON) throws IOException {
        StringWriter writer = new StringWriter();
        new JsonGenerator(writer).generate(data.getCoverageData());

        Object expected = JSONValue.parse(expectedJSON);
        Object real = JSONValue.parse(writer.toString());

        assertThat(real, is(expected));
View Full Code Here


    public static void main(final String[] args) throws Exception {
        Configuration c = new Configuration();
        String fileout = c.getJsonOutputFile();
        FileWriter fw = new FileWriter(fileout);
        c.setGenerator(new CombinedGenerator(new JsonGenerator(fw), new HtmlGenerator(c)));
        Runner r = new Runner(c);
        for(String file : args) {
            r.executeReader(file, new FileReader(file));
        }
        CoverageData data = r.done();
View Full Code Here

TOP

Related Classes of com.olabini.jescov.generators.JsonGenerator

Copyright © 2018 www.massapicom. 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.