diff options
| author | Michael Christen <mc@yacy.net> | 2019-06-15 11:43:27 +0200 |
|---|---|---|
| committer | Michael Christen <mc@yacy.net> | 2019-06-15 11:43:27 +0200 |
| commit | 3a46b07603c41a51750f0468b76666802d4b637e (patch) | |
| tree | 0e0f1473ed3feb8f9a32e71f94a259b074a8d8b7 /test/java | |
| parent | 7f7ed6278e5bbc47bd588fc69de5ebd1f3dbee3f (diff) | |
fixed many links to old forum, now https://searchlab.eu
Diffstat (limited to 'test/java')
3 files changed, 11 insertions, 11 deletions
diff --git a/test/java/net/yacy/document/parser/GenericXMLParserTest.java b/test/java/net/yacy/document/parser/GenericXMLParserTest.java index 18b6cb438..d18ed22bc 100644 --- a/test/java/net/yacy/document/parser/GenericXMLParserTest.java +++ b/test/java/net/yacy/document/parser/GenericXMLParserTest.java @@ -279,7 +279,7 @@ public class GenericXMLParserTest { + "<html xmlns=\"http://www.w3.org/1999/xhtml\">" + "<head>" + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" + "<title>XHTML attributes URLs test</title>" + "</head>" + "<body>" - + "Here are YaCy<a href=\"http://yacy.net\">home page</a> and <a href=\"http://forum.yacy.de\">International Forum</a>." + + "Here are YaCy<a href=\"http://yacy.net\">home page</a> and <a href=\"https://searchlab.eu\">International Forum</a>." + "And this is a relative link to a <a href=\"/document.html\">sub document</a>." + "</body>" + "</html>"; @@ -296,7 +296,7 @@ public class GenericXMLParserTest { assertEquals(3, detectedAnchors.size()); assertTrue(detectedAnchors.contains(new AnchorURL("http://www.w3.org/1999/xhtml"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://yacy.net"))); - assertTrue(detectedAnchors.contains(new AnchorURL("http://forum.yacy.de"))); + assertTrue(detectedAnchors.contains(new AnchorURL("https://searchlab.eu"))); } finally { inStream.close(); } @@ -316,7 +316,7 @@ public class GenericXMLParserTest { + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" + "<title>XHTML content URLs test</title>" + "</head>" + "<body>" + "Here are some YaCy links:" + "<dl>" + "<dt>Home page</dt>" + "<dd>http://yacy.net</dd>" + "<dt>International Forum</dt>" - + "<dd>http://forum.yacy.de</dd>" + "</dl>" + + "<dd>https://searchlab.eu</dd>" + "</dl>" + "And this is a mention to a relative link : /document.html " + "</body>" + "</html>"; InputStream inStream = new ByteArrayInputStream(xhtml.getBytes(StandardCharsets.UTF_8.name())); @@ -332,7 +332,7 @@ public class GenericXMLParserTest { assertEquals(3, detectedAnchors.size()); assertTrue(detectedAnchors.contains(new AnchorURL("http://www.w3.org/1999/xhtml"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://yacy.net"))); - assertTrue(detectedAnchors.contains(new AnchorURL("http://forum.yacy.de"))); + assertTrue(detectedAnchors.contains(new AnchorURL("https://searchlab.eu"))); } finally { inStream.close(); } @@ -374,7 +374,7 @@ public class GenericXMLParserTest { + "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" + "<title>XHTML content URLs test</title>" + "</head>" + "<body>" + "<p>Here are some YaCy URLs: " + "Home page : http://yacy.net - International Forum : " - + "http://forum.yacy.de " + + "https://searchlab.eu " + "and this is a mention to a relative URL : /document.html</p>" + "<p>Here are YaCy<a href=\"http://mantis.tokeek.de\">bug tracker</a> and <a href=\"http://www.yacy-websearch.net/wiki/\">Wiki</a>." + "And this is a relative link to another <a href=\"/document2.html\">sub document</a></p>" @@ -397,7 +397,7 @@ public class GenericXMLParserTest { assertEquals(5, detectedAnchors.size()); assertTrue(detectedAnchors.contains(new AnchorURL("http://www.w3.org/1999/xhtml"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://yacy.net"))); - assertTrue(detectedAnchors.contains(new AnchorURL("http://forum.yacy.de"))); + assertTrue(detectedAnchors.contains(new AnchorURL("https://searchlab.eu"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://mantis.tokeek.de"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://www.yacy-websearch.net/wiki/"))); } finally { @@ -434,7 +434,7 @@ public class GenericXMLParserTest { .append("</head>") .append("<body><p>Here are some YaCy URLs: ") .append("Home page : http://yacy.net - International Forum : ") - .append("http://forum.yacy.de ") + .append("https://searchlab.eu ") .append("and this is a mention to a relative URL : /document.html</p>"); /* Add some filler text to reach a total size beyond SAX parser internal input stream buffers */ @@ -460,7 +460,7 @@ public class GenericXMLParserTest { assertEquals(3, detectedAnchors.size()); assertTrue(detectedAnchors.contains(new AnchorURL("http://www.w3.org/1999/xhtml"))); assertTrue(detectedAnchors.contains(new AnchorURL("http://yacy.net"))); - assertTrue(detectedAnchors.contains(new AnchorURL("http://forum.yacy.de"))); + assertTrue(detectedAnchors.contains(new AnchorURL("https://searchlab.eu"))); } finally { inStream.close(); } diff --git a/test/java/net/yacy/document/parser/html/ContentScraperTest.java b/test/java/net/yacy/document/parser/html/ContentScraperTest.java index 1990a2fcd..105303166 100644 --- a/test/java/net/yacy/document/parser/html/ContentScraperTest.java +++ b/test/java/net/yacy/document/parser/html/ContentScraperTest.java @@ -173,7 +173,7 @@ public class ContentScraperTest { */ @Test public void testFindAbsoluteURLs() throws MalformedURLException { - final String[] urlStrings = { "http://yacy.net", "http://forum.yacy.de", "https://en.wikipedia.org" }; + final String[] urlStrings = { "http://yacy.net", "https://searchlab.eu", "https://en.wikipedia.org" }; final List<AnchorURL> urls = new ArrayList<>(); for (String urlString : urlStrings) { urls.add(new AnchorURL(urlString)); @@ -277,7 +277,7 @@ public class ContentScraperTest { */ @Test public void testFindAbsoluteURLsMaxURLs() throws MalformedURLException { - final String text = "Some test URLS : http://yacy.net - http://forum.yacy.de - https://en.wikipedia.org"; + final String text = "Some test URLS : http://yacy.net - https://searchlab.eu - https://en.wikipedia.org"; /* No limit */ ArrayList<AnchorURL> detectedURLs = new ArrayList<>(); diff --git a/test/java/net/yacy/document/parser/ooxmlParserTest.java b/test/java/net/yacy/document/parser/ooxmlParserTest.java index 1839f2fc9..5500be0ea 100644 --- a/test/java/net/yacy/document/parser/ooxmlParserTest.java +++ b/test/java/net/yacy/document/parser/ooxmlParserTest.java @@ -153,7 +153,7 @@ public class ooxmlParserTest { assertNotNull("Detected URLs must not be null", anchors); assertEquals("2 URLs should be detected", 2, anchors.size()); assertTrue("YaCy home page URL should have been parsed", anchors.contains(new AnchorURL("http://yacy.net"))); - assertTrue("YaCy forum URL should have been parsed", anchors.contains(new AnchorURL("http://forum.yacy-websuche.de/"))); + assertTrue("YaCy forum URL should have been parsed", anchors.contains(new AnchorURL("https://searchlab.eu"))); } } |
