MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / getRootElement

Method getRootElement

htmlflow-core/src/test/java/htmlflow/test/Utils.java:54–58  ·  view source on GitHub ↗
(byte[] input)

Source from the content-addressed store, hash-verified

52 private Utils() {}
53
54 static Element getRootElement(byte[] input) {
55 W3CDom w3cDom = new W3CDom();
56 Document doc = w3cDom.fromJsoup(Jsoup.parse(new String(input, StandardCharsets.UTF_8)));
57 return doc.getDocumentElement();
58 }
59
60 static <T> Stream<String> htmlWrite(ByteArrayOutputStream mem){
61 InputStreamReader actual = new InputStreamReader(new ByteArrayInputStream(mem.toByteArray()));

Callers 3

assertTaskHtmlViewMethod · 0.95
assertSimpleHtmlViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected