You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "David Pitfield (JIRA)" <ji...@apache.org> on 2006/08/04 21:55:24 UTC

[jira] Closed: (JCR-508) TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save

     [ http://issues.apache.org/jira/browse/JCR-508?page=all ]

David Pitfield closed JCR-508.
------------------------------


> 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
>             Fix For: 1.1
>
>
> 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