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 18:19:13 UTC
svn commit: r1807514 -
/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
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();