Search in sources :

Example 1 with SourceNodeImpl

use of org.jacoco.core.internal.analysis.SourceNodeImpl in project jacoco by jacoco.

the class SourceHighlighterTest method setup.

@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);
}
Also used : SourceNodeImpl(org.jacoco.core.internal.analysis.SourceNodeImpl) HTMLSupport(org.jacoco.report.internal.html.HTMLSupport) StringWriter(java.io.StringWriter) HTMLDocument(org.jacoco.report.internal.html.HTMLDocument) Before(org.junit.Before)

Aggregations

StringWriter (java.io.StringWriter)1 SourceNodeImpl (org.jacoco.core.internal.analysis.SourceNodeImpl)1 HTMLDocument (org.jacoco.report.internal.html.HTMLDocument)1 HTMLSupport (org.jacoco.report.internal.html.HTMLSupport)1 Before (org.junit.Before)1