fix test case MultiProtocolURL.toString()

(only allowed on AnchorURL)
pull/1/head
reger 11 years ago
parent 0a2f4a0e2f
commit e50b2b4d04

@ -21,7 +21,7 @@ public class DigestURLTest extends TestCase {
String shouldBe = testStrings[i][1]; String shouldBe = testStrings[i][1];
// conversion result // conversion result
String resolvedURL = (new DigestURL(testStrings[i][0])).toString(); String resolvedURL = (new DigestURL(testStrings[i][0])).toNormalform(false);
// test if equal // test if equal
assertEquals(shouldBe, resolvedURL); assertEquals(shouldBe, resolvedURL);

@ -55,7 +55,7 @@ public class MultiProtocolURLTest {
// conversion result // conversion result
String resolvedURL = ""; String resolvedURL = "";
try { try {
resolvedURL = (new MultiProtocolURL(testhost + testStrings[i][0])).toString(); resolvedURL = (new MultiProtocolURL(testhost + testStrings[i][0])).toNormalform(false);
} catch (final MalformedURLException ex) { } catch (final MalformedURLException ex) {
fail("malformed URL"); fail("malformed URL");
} }

Loading…
Cancel
Save