commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1807514 - /commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Date Wed, 06 Sep 2017 18:19:13 GMT
Author: ggregory
Date: Wed Sep  6 18:19:13 2017
New Revision: 1807514

URL: http://svn.apache.org/viewvc?rev=1807514&view=rev
Log:
Add a few tests.

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=1807514&r1=1807513&r2=1807514&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 18:19:13 2017
@@ -111,6 +111,20 @@ public class FileLockTestCase {
     }
 
     @Test
+    public void testResolveAndOpenReadCloseInputStream() throws Exception {
+        resolveAndOpenReadCloseInputStream();
+        assertDelete();
+    }
+
+    @Test
+    public void testResolveAndOpenReadCloseInputStream3() throws Exception {
+        resolveAndOpenReadCloseInputStream();
+        resolveAndOpenReadCloseInputStream();
+        resolveAndOpenReadCloseInputStream();
+        assertDelete();
+    }
+
+    @Test
     public void testResolveAndOpenCloseContent3() throws Exception {
         resolveAndOpenCloseContent();
         resolveAndOpenCloseContent();
@@ -141,7 +155,7 @@ public class FileLockTestCase {
     }
 
     @Test
-    public void testNestedInputStreams() throws Exception {
+    public void testResolveOpenCloseNestedInputStreams() throws Exception {
         try (final FileObject zipFileObject = manager.resolveFile(zipFileUri)) {
             try (final FileObject zipFileObject2 = manager.resolveFile(zipFileUri)) {
                 zipFileObject2.getContent().getInputStream().close();



Mime
View raw message