jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1447734 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java
Date Tue, 19 Feb 2013 14:36:31 GMT
Author: thomasm
Date: Tue Feb 19 14:36:30 2013
New Revision: 1447734

URL: http://svn.apache.org/r1447734
Log:
OAK-642 NPE trying to add a node to an nt:folder node

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java?rev=1447734&r1=1447733&r2=1447734&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java
Tue Feb 19 14:36:30 2013
@@ -23,6 +23,7 @@ import javax.jcr.Property;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 
+import org.junit.Ignore;
 import org.junit.Test;
 
 import static junit.framework.Assert.assertEquals;
@@ -115,4 +116,13 @@ public class CRUDTest extends AbstractRe
         Property property = getAdminSession().getRootNode().getProperty("jcr:primaryType");
         assertEquals("/jcr:primaryType", property.getPath());
     }
+    
+    @Test
+    @Ignore("OAK-642")
+    public void nodeType() throws RepositoryException {
+            Session s = getAdminSession();
+            s.getRootNode().addNode("a", "nt:folder").addNode("b");
+            s.save();        
+    }
+    
 }



Mime
View raw message