Skip to content

Commit 47292c8

Browse files
committed
fix test (hopefully)
1 parent fecac51 commit 47292c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ public void localFile() throws Exception {
418418
@Alerts("titel - simple.html")
419419
public void localFileFile() throws Exception {
420420
final URL url = getClass().getClassLoader().getResource("simple.html");
421-
String file = url.getFile();
421+
String file = URLDecoder.decode(url.getFile(), StandardCharsets.UTF_8);
422422
if (file.startsWith("/") && file.contains(":")) {
423+
// we have to remove the trailing slash to test the c:\.... case.
423424
file = file.substring(1);
424425
}
425426

0 commit comments

Comments
 (0)