Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.BundleCoverage


    report = new XMLReportFile("UTF-8", output.createFile());
  }

  @Test
  public void testEmptyReport() throws Exception {
    IReportVisitor groupElement = report.visitChild(new BundleCoverage(
        "test", Arrays.<PackageCoverage> asList()));
    groupElement.visitEnd(nullSourceLocator);
    report.visitEnd(nullSourceLocator);

    assertPathMatches("test", "/report/group/@name");
View Full Code Here


    ClassCoverage classCoverage = new ClassCoverage("org/jacoco/test/Test",
        "Test.java", Arrays.asList(methodCoverage));
    PackageCoverage packageCoverage = new PackageCoverage(
        "org/jacoco/test", Arrays.asList(classCoverage), Collections
            .<SourceFileCoverage> emptyList());
    BundleCoverage bundleCoverage = new BundleCoverage("test", Arrays
        .asList(packageCoverage));

    IReportVisitor sessionElement = report.visitChild(bundleCoverage);
    IReportVisitor packageElement = sessionElement
        .visitChild(packageCoverage);
View Full Code Here

    report = new XMLReportFile("UTF-8", output.createFile());
  }

  @Test
  public void testEmptyReport() throws Exception {
    IReportVisitor groupElement = report.visitChild(new BundleCoverage(
        "test", Arrays.<PackageCoverage> asList()));
    groupElement.visitEnd(nullSourceLocator);
    report.visitEnd(nullSourceLocator);

    assertPathMatches("test", "/report/group/@name");
View Full Code Here

        null, "java/lang/Object", new String[0], "Test.java", Arrays
            .asList(methodCoverage));
    PackageCoverage packageCoverage = new PackageCoverage(
        "org/jacoco/test", Arrays.asList(classCoverage), Collections
            .<SourceFileCoverage> emptyList());
    BundleCoverage bundleCoverage = new BundleCoverage("test", Arrays
        .asList(packageCoverage));

    IReportVisitor sessionElement = report.visitChild(bundleCoverage);
    IReportVisitor packageElement = sessionElement
        .visitChild(packageCoverage);
View Full Code Here

TOP

Related Classes of org.jacoco.core.analysis.BundleCoverage

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.