use of org.jacoco.report.internal.html.HTMLDocument in project jacoco by jacoco.
the class ReportPage method render.
/**
* Renders this page's content and optionally additional pages. This method
* must be called at most once.
*
* @throws IOException
* if the page can't be written
*/
public void render() throws IOException {
final HTMLDocument doc = new HTMLDocument(folder.createFile(getFileName()), context.getOutputEncoding());
doc.attr("lang", context.getLocale().getLanguage());
head(doc.head());
body(doc.body());
doc.close();
}
use of org.jacoco.report.internal.html.HTMLDocument 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);
}
Aggregations