Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix test case MultiProtocolURL.toString() (only allowed on AnchorURL)
regere50b2b4d049d
diff --git a/test/net/yacy/cora/document/id/DigestURLTest.java b/test/net/yacy/cora/document/id/DigestURLTest.javaindex 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 equalassertEquals(shouldBe, resolvedURL);diff --git a/test/net/yacy/cora/document/id/MultiProtocolURLTest.java b/test/net/yacy/cora/document/id/MultiProtocolURLTest.javaindex 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 resultString 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");}