Skip to content

Commit 124aaa2

Browse files
committed
better assert output
1 parent d6b7d5f commit 124aaa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/htmlunit/WebClient2Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public void localFile() throws Exception {
395395
file = file.substring(1);
396396
}
397397

398-
assertTrue(new File(file).exists());
398+
assertTrue("File '" + file + "' does not exist", new File(file).exists());
399399

400400
try (WebClient webClient = new WebClient(getBrowserVersion())) {
401401
final HtmlPage page = webClient.getPage(file);
@@ -418,7 +418,7 @@ public void localFileFile() throws Exception {
418418
file = file.substring(1);
419419
}
420420

421-
assertTrue(new File(file).exists());
421+
assertTrue("File '" + file + "' does not exist", new File(file).exists());
422422

423423
try (WebClient webClient = new WebClient(getBrowserVersion())) {
424424
final HtmlPage page = webClient.getPage("file://" + file);

0 commit comments

Comments
 (0)