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 fe8762e commit 1acdeacCopy full SHA for 1acdeac
src/test/java/org/htmlunit/WebClient2Test.java
@@ -402,7 +402,9 @@ public void localFile() throws Exception {
402
fail("IOException expected");
403
}
404
catch (final IOException e) {
405
- assertEquals("Unsupported protocol 'c'", e.getMessage());
+ assertTrue(e.getMessage(),
406
+ e.getMessage().startsWith("Unsupported protocol '")
407
+ || e.getMessage().startsWith("no protocol: /"));
408
409
410
0 commit comments