Runs the sanity check. @throws Exception if anything goes wrong
()
| 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". |
no test coverage detected