MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / runSanityCheck

Method runSanityCheck

src/main/java/org/htmlunit/Version.java:53–59  ·  view source on GitHub ↗

Runs the sanity check. @throws Exception if anything goes wrong

()

Source from the content-addressed store, hash-verified

51 * @throws Exception if anything goes wrong
52 */
53 private static void runSanityCheck() throws Exception {
54 try (WebClient webClient = new WebClient()) {
55 final HtmlPage page = webClient.getPage("https://www.htmlunit.org/index.html");
56 page.executeJavaScript("document.location");
57 System.out.println("Sanity check complete.");
58 }
59 }
60
61 /**
62 * Returns "HtmlUnit".

Callers 1

mainMethod · 0.95

Calls 2

executeJavaScriptMethod · 0.95
getPageMethod · 0.65

Tested by

no test coverage detected