jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1447939 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/CRUDTest.java
Date Tue, 19 Feb 2013 21:55:34 GMT
Author: mduerig
Date: Tue Feb 19 21:55:34 2013
New Revision: 1447939

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

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=1447939&r1=1447938&r2=1447939&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 21:55:34 2013
@@ -22,6 +22,7 @@ import javax.jcr.PathNotFoundException;
 import javax.jcr.Property;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
+import javax.jcr.nodetype.ConstraintViolationException;
 
 import org.junit.Ignore;
 import org.junit.Test;
@@ -117,7 +118,7 @@ public class CRUDTest extends AbstractRe
         assertEquals("/jcr:primaryType", property.getPath());
     }
     
-    @Test
+    @Test(expected = ConstraintViolationException.class)
     @Ignore("OAK-642")
     public void nodeType() throws RepositoryException {
             Session s = getAdminSession();



Mime
View raw message