jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1420626 - /jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java
Date Wed, 12 Dec 2012 11:47:45 GMT
Author: alexparvulescu
Date: Wed Dec 12 11:47:44 2012
New Revision: 1420626

URL: http://svn.apache.org/viewvc?rev=1420626&view=rev
Log:
JCR-3480 Extend SaveTest#testConstraintViolationException to cover cases where the validation
happens on Session#save

Modified:
    jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java?rev=1420626&r1=1420625&r2=1420626&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/query/SaveTest.java
Wed Dec 12 11:47:44 2012
@@ -160,6 +160,7 @@ public class SaveTest extends AbstractJC
         testRootNode.addNode(nodeName1, testNodeType);
         try {
             query.storeAsNode(testRoot + "/" + nodeName1 + "/" + nodeName2);
+            superuser.save();
             fail("Query.storeAsNode() must throw ConstraintViolationException, parent node
does not allow child nodes.");
         } catch (ConstraintViolationException e) {
             // expected behaviour



Mime
View raw message