jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-508) TCK: NodeTest#testAddNodeItemExistsException fails if validation deferred until save
Date Wed, 02 Aug 2006 14:04:16 GMT
     [ http://issues.apache.org/jira/browse/JCR-508?page=all ]

Marcel Reutegger resolved JCR-508.
----------------------------------

    Fix Version/s: 1.1
       Resolution: Fixed

Fixed as suggested.

svn revision: 427983

Thank you for reporting this issue.

> 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

        

Mime
View raw message