jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r635591 - /jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java
Date Mon, 10 Mar 2008 16:28:37 GMT
Author: stefan
Date: Mon Mar 10 09:28:30 2008
New Revision: 635591

URL: http://svn.apache.org/viewvc?rev=635591&view=rev
Log:
JCR-1444: The getOutputStream of the MemoryFileSystem class can replace a folder with a newly
created file

Modified:
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java?rev=635591&r1=635590&r2=635591&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/fs/AbstractFileSystemTest.java
Mon Mar 10 09:28:30 2008
@@ -152,6 +152,14 @@
         assertEquals(1, list.length);
         assertEquals("subfolder", list[0]);
 
+        // Try to create a file coliding with an exisiting folder
+        try {
+            createFile("/folder2/subfolder", sampleBytes);
+            fail("FileSystemException expected");
+        } catch (FileSystemException e) {
+            // ok
+        }
+
         // Delete the subfolder
         fs.deleteFolder("/folder2/subfolder");
         assertFalse(fs.exists("/folder2/subfolder"));



Mime
View raw message