commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1807540 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Date Wed, 06 Sep 2017 22:29:06 GMT
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";



Mime
View raw message