Cleanup
This commit is contained in:
parent
b63ffc081e
commit
a3395794ae
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue