]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Deletes temporary resource files created by unit test
authorMehdi Houshmand <mehdi@apache.org>
Wed, 4 Jul 2012 10:51:38 +0000 (10:51 +0000)
committerMehdi Houshmand <mehdi@apache.org>
Wed, 4 Jul 2012 10:51:38 +0000 (10:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1357222 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/apps/io/ResourceResolverFactoryTestCase.java

index 223f7404548e4468232ec63a1c27e5e43addf2d4..b6b2eea00e40b9ec6b50014cd944df68c30ab1b4 100644 (file)
@@ -79,6 +79,7 @@ public class ResourceResolverFactoryTestCase {
     public void testDefaultResourceResolverGetOutput() throws Exception {
         ResourceResolver sut = ResourceResolverFactory.createDefaultResourceResolver();
         File outputFile = File.createTempFile("prefix", "suffix");
+        outputFile.deleteOnExit();
         writeDataTo(sut.getOutputStream(outputFile.toURI()));
         InputStream is = new FileInputStream(outputFile);
         try {