Remove last modified in tests, causes problems (timezones)

This commit is contained in:
Matthias Kurz 2019-01-27 14:16:34 +01:00
parent edcec3bd5c
commit 954b0d3c42
No known key found for this signature in database
GPG Key ID: 0B4AAA92F1117EF5
1 changed files with 0 additions and 5 deletions

View File

@ -68,7 +68,6 @@ public class GoogleImageSitemapUrlTest extends TestCase {
.images(new Image("http://cdn.example.com/image1.jpg"), new Image("http://cdn.example.com/image2.jpg"))
.priority(0.5)
.changeFreq(ChangeFreq.WEEKLY)
.lastMod(new Date(0))
.build();
wsg.addUrl(url);
@ -76,7 +75,6 @@ public class GoogleImageSitemapUrlTest extends TestCase {
"<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" >\n" +
" <url>\n" +
" <loc>http://www.example.com/index.html</loc>\n" +
" <lastmod>1970-01-01T08:00+08:00</lastmod>\n" +
" <changefreq>weekly</changefreq>\n" +
" <priority>0.5</priority>\n" +
" <image:image>\n" +
@ -109,7 +107,6 @@ public class GoogleImageSitemapUrlTest extends TestCase {
.build())
.priority(0.5)
.changeFreq(ChangeFreq.WEEKLY)
.lastMod(new Date(0))
.build();
wsg.addUrl(url);
@ -117,7 +114,6 @@ public class GoogleImageSitemapUrlTest extends TestCase {
"<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\" xmlns:image=\"http://www.google.com/schemas/sitemap-image/1.1\" >\n" +
" <url>\n" +
" <loc>http://www.example.com/index.html</loc>\n" +
" <lastmod>1970-01-01T08:00+08:00</lastmod>\n" +
" <changefreq>weekly</changefreq>\n" +
" <priority>0.5</priority>\n" +
" <image:image>\n" +
@ -152,7 +148,6 @@ public class GoogleImageSitemapUrlTest extends TestCase {
.images(images)
.priority(0.5)
.changeFreq(ChangeFreq.WEEKLY)
.lastMod(new Date(0))
.build();
fail("Too many images allowed");
} catch (RuntimeException r) {}