Cleanup
This commit is contained in:
parent
b63ffc081e
commit
a3395794ae
|
@ -2,7 +2,6 @@ package com.redfin.sitemapgenerator;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.net.*;
|
import java.net.*;
|
||||||
import java.util.Locale;
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Map.Entry;
|
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);
|
final GoogleLinkSitemapUrl url = new GoogleLinkSitemapUrl("http://www.example.com/index.html", alternates);
|
||||||
wsg.addUrl(url);
|
wsg.addUrl(url);
|
||||||
//@formatter:off
|
|
||||||
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||||
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
|
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
|
||||||
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
|
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
|
||||||
|
@ -64,7 +63,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
|
||||||
+ " />\n"
|
+ " />\n"
|
||||||
+ " </url>\n"
|
+ " </url>\n"
|
||||||
+ "</urlset>";
|
+ "</urlset>";
|
||||||
//@formatter:on
|
|
||||||
final String sitemap = writeSingleSiteMap(wsg);
|
final String sitemap = writeSingleSiteMap(wsg);
|
||||||
assertEquals(expected, sitemap);
|
assertEquals(expected, sitemap);
|
||||||
}
|
}
|
||||||
|
@ -79,7 +77,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
|
||||||
|
|
||||||
final GoogleLinkSitemapUrl url = new GoogleLinkSitemapUrl("http://www.example.com/index.html", alternates);
|
final GoogleLinkSitemapUrl url = new GoogleLinkSitemapUrl("http://www.example.com/index.html", alternates);
|
||||||
wsg.addUrl(url);
|
wsg.addUrl(url);
|
||||||
//@formatter:off
|
|
||||||
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
|
||||||
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
|
+ "<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" "
|
||||||
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
|
+ "xmlns:xhtml=\"http://www.w3.org/1999/xhtml\" >\n"
|
||||||
|
@ -102,7 +99,6 @@ public class GoogleLinkSitemapUrlTest extends TestCase {
|
||||||
+ " />\n"
|
+ " />\n"
|
||||||
+ " </url>\n"
|
+ " </url>\n"
|
||||||
+ "</urlset>";
|
+ "</urlset>";
|
||||||
//@formatter:on
|
|
||||||
final String sitemap = writeSingleSiteMap(wsg);
|
final String sitemap = writeSingleSiteMap(wsg);
|
||||||
assertEquals(expected, sitemap);
|
assertEquals(expected, sitemap);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue