Skip to content

Commit

Permalink
Replace deprecated HtmlUnit methods with new ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotn committed Feb 14, 2022
1 parent 5f60f39 commit 5824c3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -80,10 +80,10 @@ public void testActionMethodExceptionDoesNotDestroyContext() throws Exception {
Assert.assertEquals("Application Error", page.getTitleText());

HtmlDivision conversationValue = getFirstMatchingElement(page, HtmlDivision.class, "conversation");
Assert.assertEquals("10", conversationValue.asText());
Assert.assertEquals("10", conversationValue.asNormalizedText());

HtmlDivision requestValue = getFirstMatchingElement(page, HtmlDivision.class, "request");
Assert.assertEquals("medium", requestValue.asText());
Assert.assertEquals("medium", requestValue.asNormalizedText());
}

protected String getPath(String page) {
Expand Down
Expand Up @@ -48,7 +48,7 @@ public void testELContextOfDepedentScopeBean() throws Exception {
WebClient client = new WebClient();
client.getOptions().setThrowExceptionOnFailingStatusCode(false);
HtmlPage main = client.getPage(url);
assertTrue(main.getBody().asText().contains("Hello from dependent scope bean"));
assertTrue(main.getBody().asNormalizedText().contains("Hello from dependent scope bean"));
}

}

0 comments on commit 5824c3f

Please sign in to comment.