Skip to content

Commit cb8e0b6

Browse files
jirka.pinkas@gmail.comjirka.pinkas@gmail.com
authored andcommitted
refactored use of deprecated method
1 parent 5cc4687 commit cb8e0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/cz/jiripinkas/jsitemapgenerator/generator/SitemapGeneratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void testConstructSitemap() throws Exception {
105105
@Test
106106
public void testSaveSitemap() throws Exception {
107107
File tmpFile = File.createTempFile("test", "sitemap");
108-
sitemapGenerator.saveSitemap(tmpFile, sitemapGenerator.toStringArray());
108+
sitemapGenerator.toFile(tmpFile);
109109
try {
110110
TestUtil.testSitemapXsdFile(tmpFile, new File("sitemap.xsd"));
111111
} finally {

0 commit comments

Comments
 (0)