jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1000844 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java
Date Fri, 24 Sep 2010 12:41:50 GMT
Author: jukka
Date: Fri Sep 24 12:41:50 2010
New Revision: 1000844

URL: http://svn.apache.org/viewvc?rev=1000844&view=rev
Log:
JCR-515: Enhance test data

Add a test file for NodeDefTest

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java?rev=1000844&r1=1000843&r2=1000844&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/TestContentLoader.java
Fri Sep 24 12:41:50 2010
@@ -35,6 +35,7 @@ import javax.jcr.retention.RetentionPoli
 
 import org.apache.jackrabbit.api.JackrabbitNodeTypeManager;
 import org.apache.jackrabbit.api.JackrabbitWorkspace;
+import org.apache.jackrabbit.commons.JcrUtils;
 import org.apache.jackrabbit.core.retention.RetentionPolicyImpl;
 
 /**
@@ -168,6 +169,11 @@ public class TestContentLoader {
                 factory.createValue(resource),
                 factory.createValue(resReference)
             });
+
+        // NodeDefTest requires a test node with a mandatory child node
+        JcrUtils.putFile(
+                node, "testFile", "text/plain",
+                new ByteArrayInputStream("Hello, World!".getBytes("UTF-8")));
     }
 
     /**



Mime
View raw message