Package org.jacoco.core.internal.analysis

Examples of org.jacoco.core.internal.analysis.SourceNodeImpl


  private SourceNodeImpl source;

  @Before
  public void setup() throws Exception {
    htmlSupport = new HTMLSupport();
    source = new SourceNodeImpl(ElementType.SOURCEFILE, "Foo.java");
    buffer = new StringWriter();
    html = new HTMLDocument(buffer, "UTF-8");
    html.head().title();
    parent = html.body();
    sourceHighlighter = new SourceHighlighter(Locale.US);
View Full Code Here


  @Test
  public void testClass() throws Exception {
    final IReportVisitor packageHandler = handler
        .visitChild(new CoverageNodeImpl(ElementType.PACKAGE,
            "org.jacoco.example"));
    packageHandler.visitChild(new SourceNodeImpl(ElementType.CLASS, "Foo"))
        .visitEnd(null);
    packageHandler.visitEnd(null);
    final Document doc = getDocument();
    assertEquals("Foo",
        support.findStr(doc, "//report/package/class/@name"));
View Full Code Here

  public void testMethod() throws Exception {
    final IReportVisitor packageHandler = handler
        .visitChild(new CoverageNodeImpl(ElementType.PACKAGE,
            "org.jacoco.example"));
    final IReportVisitor classHandler = packageHandler
        .visitChild(new SourceNodeImpl(ElementType.CLASS, "Foo"));
    MethodCoverageImpl node = new MethodCoverageImpl("doit", "()V", null);
    node.increment(CounterImpl.COUNTER_1_0, CounterImpl.COUNTER_0_0, 15);
    classHandler.visitChild(node).visitEnd(null);
    classHandler.visitEnd(null);
    packageHandler.visitEnd(null);
View Full Code Here

  @Test
  public void testSourcefile() throws Exception {
    final IReportVisitor packageHandler = handler
        .visitChild(new CoverageNodeImpl(ElementType.PACKAGE,
            "org.jacoco.example"));
    final SourceNodeImpl node = new SourceNodeImpl(ElementType.SOURCEFILE,
        "Foo.java");
    node.increment(CounterImpl.getInstance(1, 2),
        CounterImpl.getInstance(3, 4), 12);
    packageHandler.visitChild(node).visitEnd(null);
    packageHandler.visitEnd(null);
    final Document doc = getDocument();
    assertEquals("Foo.java",
View Full Code Here

  private SourceNodeImpl source;

  @Before
  public void setup() throws Exception {
    htmlSupport = new HTMLSupport();
    source = new SourceNodeImpl(ElementType.SOURCEFILE, "Foo.java");
    buffer = new StringWriter();
    html = new HTMLDocument(buffer, "UTF-8");
    html.head().title();
    parent = html.body();
    sourceHighlighter = new SourceHighlighter(Locale.US);
View Full Code Here

  private SourceNodeImpl source;

  @Before
  public void setup() throws Exception {
    htmlSupport = new HTMLSupport();
    source = new SourceNodeImpl(ElementType.SOURCEFILE, "Foo.java");
    buffer = new StringWriter();
    html = new HTMLDocument(buffer, "UTF-8");
    html.head().title();
    parent = html.body();
    sourceHighlighter = new SourceHighlighter(Locale.US);
View Full Code Here

  private SourceNodeImpl source;

  @Before
  public void setup() throws Exception {
    htmlSupport = new HTMLSupport();
    source = new SourceNodeImpl(ElementType.SOURCEFILE, "Foo.java");
    buffer = new StringWriter();
    html = new HTMLDocument(buffer, "UTF-8");
    html.head().title();
    parent = html.body();
    sourceHighlighter = new SourceHighlighter(Locale.US);
View Full Code Here

TOP

Related Classes of org.jacoco.core.internal.analysis.SourceNodeImpl

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.