jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r427983 - /jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
Date Wed, 02 Aug 2006 14:04:31 GMT
Author: mreutegg
Date: Wed Aug  2 07:04:29 2006
New Revision: 427983

URL: http://svn.apache.org/viewvc?rev=427983&view=rev
Log:
JCR-508: TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save

Modified:
    jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java

Modified: jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java?rev=427983&r1=427982&r2=427983&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
(original)
+++ jackrabbit/trunk/jackrabbit/src/test/java/org/apache/jackrabbit/test/api/NodeTest.java
Wed Aug  2 07:04:29 2006
@@ -336,7 +336,7 @@
 
     /**
      * Tries to create a node using {@link javax.jcr.Node#addNode(String,
-            * String)}  at a location where there is already a node with same name and
+     * String)}  at a location where there is already a node with same name and
      * the parent does not allow same name siblings. <br/><br/> This should
      * throw an {@link javax.jcr.ItemExistsException }. <br/><br> Prerequisites:
      * <ul> <li><code>javax.jcr.tck.NodeTest.testAddNodeItemExistsException.nodetype<code>
@@ -358,6 +358,7 @@
         try {
             // try to add a node with same name again
             defaultTestNode.addNode(nodeName3, testNodeType);
+            defaultRootNode.save();
             fail("Adding a node to a location where same name siblings are not allowed, but
a node with same name" +
                     " already exists should throw ItemExistsException ");
         } catch (ItemExistsException e) {



Mime
View raw message