jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-508) TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save
Date Wed, 26 Jul 2006 23:32:14 GMT
TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save
------------------------------------------------------------------------------------

                 Key: JCR-508
                 URL: http://issues.apache.org/jira/browse/JCR-508
             Project: Jackrabbit
          Issue Type: Bug
          Components: test
            Reporter: David Pitfield


The test expects addNode to fail if a same-name sibling already exists.  JSR-170 allows this
validation to be deferred until save.

Proposal: call save in the "try" block.

--- NodeTest.java       (revision 422074)
+++ NodeTest.java       (working copy)
@@ -380,6 +391,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) {


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message