You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2017/09/06 22:29:06 UTC

svn commit: r1807540 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java

Author: ggregory
Date: Wed Sep  6 22:29:05 2017
New Revision: 1807540

URL: http://svn.apache.org/viewvc?rev=1807540&view=rev
Log:
Test clean up: use a .zip extension for temp file and don't hard code class name.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java?rev=1807540&r1=1807539&r2=1807540&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java (original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java Wed Sep  6 22:29:05 2017
@@ -73,7 +73,7 @@ public class FileLockTestCase {
     @Before
     public void setup() throws IOException {
         final File zipFile = new File("src/test/resources/test-data/test.zip");
-        newZipFile = File.createTempFile("FileLockTestCase", "zip");
+        newZipFile = File.createTempFile(getClass().getSimpleName(), ".zip");
         newZipFile.deleteOnExit();
         FileUtils.copyFile(zipFile, newZipFile);
         zipFileUri = "zip:file:" + newZipFile.getAbsolutePath() + "!/read-tests/file1.txt";