This commit is contained in:
Matthias Kurz 2018-07-05 15:17:34 +02:00
parent b63ffc081e
commit a3395794ae
No known key found for this signature in database
GPG Key ID: 0B4AAA92F1117EF5
3 changed files with 263 additions and 268 deletions

View File

@ -2,7 +2,6 @@ package com.redfin.sitemapgenerator;
import java.io.File;
import java.net.*;
import java.util.Locale;
import java.util.Map;
import java.util.Map.Entry;

View File

@ -41,7 +41,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
final GoogleLinkSitemapUrl url = new GoogleLinkSitemapUrl("http://www.example.com/index.html", alternates);
wsg.addUrl(url);
//@formatter:off
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
@ -64,7 +63,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
+ " />\n"
+ " </url>\n"
+ "</urlset>";
//@formatter:on
final String sitemap = writeSingleSiteMap(wsg);
assertEquals(expected, sitemap);
}
@ -79,7 +77,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
final GoogleLinkSitemapUrl url = new GoogleLinkSitemapUrl("http://www.example.com/index.html", alternates);
wsg.addUrl(url);
//@formatter:off
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
@ -102,7 +99,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
+ " />\n"
+ " </url>\n"
+ "</urlset>";
//@formatter:on
final String sitemap = writeSingleSiteMap(wsg);
assertEquals(expected, sitemap);
}