commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1182048 - /commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
Date Tue, 11 Oct 2011 19:38:58 GMT
Author: ggregory
Date: Tue Oct 11 19:38:58 2011
New Revision: 1182048

URL: http://svn.apache.org/viewvc?rev=1182048&view=rev
Log:
[VFS-367] Add API FileObject isFile().

Modified:
    commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java

Modified: commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java?rev=1182048&r1=1182047&r2=1182048&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
(original)
+++ commons/proper/vfs/trunk/core/src/test/java/org/apache/commons/vfs2/test/ProviderWriteTests.java
Tue Oct 11 19:38:58 2011
@@ -140,6 +140,7 @@ public class ProviderWriteTests
         file.createFile();
         assertTrue(file.exists());
         assertSame(FileType.FILE, file.getType());
+        assertTrue(file.isFile());
         assertEquals(0, file.getContent().getSize());
         assertTrue(file.getParent().exists());
         assertTrue(file.getParent().getParent().exists());
@@ -165,6 +166,7 @@ public class ProviderWriteTests
         FileObject file = scratchFolder.resolveFile("dir1/file1.txt");
         file.createFile();
         assertEquals(FileType.FILE, file.getType());
+        assertTrue(file.isFile());
 
         FileObject folder = scratchFolder.resolveFile("dir1/dir2");
         folder.createFolder();



Mime
View raw message