From e50b2b4d049dd6cf7fab8ec3f7c71fd3b7b6bbc9 Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 11 Aug 2014 04:29:43 +0200 Subject: [PATCH] fix test case MultiProtocolURL.toString() (only allowed on AnchorURL) --- test/net/yacy/cora/document/id/DigestURLTest.java | 2 +- test/net/yacy/cora/document/id/MultiProtocolURLTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/net/yacy/cora/document/id/DigestURLTest.java b/test/net/yacy/cora/document/id/DigestURLTest.java index 227fe9858..587a4ee27 100644 --- a/test/net/yacy/cora/document/id/DigestURLTest.java +++ b/test/net/yacy/cora/document/id/DigestURLTest.java @@ -21,7 +21,7 @@ public class DigestURLTest extends TestCase { String shouldBe = testStrings[i][1]; // conversion result - String resolvedURL = (new DigestURL(testStrings[i][0])).toString(); + String resolvedURL = (new DigestURL(testStrings[i][0])).toNormalform(false); // test if equal assertEquals(shouldBe, resolvedURL); diff --git a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java index aae13fa1a..394fc1a25 100644 --- a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java +++ b/test/net/yacy/cora/document/id/MultiProtocolURLTest.java @@ -55,7 +55,7 @@ public class MultiProtocolURLTest { // conversion result String resolvedURL = ""; try { - resolvedURL = (new MultiProtocolURL(testhost + testStrings[i][0])).toString(); + resolvedURL = (new MultiProtocolURL(testhost + testStrings[i][0])).toNormalform(false); } catch (final MalformedURLException ex) { fail("malformed URL"); }