We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fecac51 commit 47292c8Copy full SHA for 47292c8
src/test/java/org/htmlunit/WebClient2Test.java
@@ -418,8 +418,9 @@ public void localFile() throws Exception {
418
@Alerts("titel - simple.html")
419
public void localFileFile() throws Exception {
420
final URL url = getClass().getClassLoader().getResource("simple.html");
421
- String file = url.getFile();
+ String file = URLDecoder.decode(url.getFile(), StandardCharsets.UTF_8);
422
if (file.startsWith("/") && file.contains(":")) {
423
+ // we have to remove the trailing slash to test the c:\.... case.
424
file = file.substring(1);
425
}
426
0 commit comments