[ 
https://issues.apache.org/jira/browse/JCR-3380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13412789#comment-13412789
 ] 

Julian Reschke commented on JCR-3380:
-------------------------------------

We should modify the tests so that the move is tried, and the outcome is 
checked (that is, that the move has actually changed the state of the repo as 
defined).

Test cases can be marked as "failing" in the pom.xml for jackrabbit-core.
                
> TCK tests for shareable nodes assume moving shareable nodes is not supported
> ----------------------------------------------------------------------------
>
>                 Key: JCR-3380
>                 URL: https://issues.apache.org/jira/browse/JCR-3380
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-tests, JCR 2.0, test
>    Affects Versions: 2.5
>            Reporter: Randall Hauch
>             Fix For: 2.5.1, 2.6
>
>         Attachments: JCR-3380-fix-shareable-tests.patch
>
>
> There are two tests in ShareableNodeTest that assume that an implementation 
> does not support moving shareable nodes. This is inconsistent with what is 
> required by JSR-283.
> 1) testMoveShareableNode assumes that the implementation does not support 
> moving nodes that are 'mix:shareable' (even when they are not yet shared) 
> using Workspace.move(...). 
> 2) testTransientMoveShareableNode makes a similar assumption to #1, except 
> that it uses the Session.move(...) operation.
> Both of these test should be changed to allow an implementation to either not 
> support the operation (e.g., Jackrabbit) or to properly check the results.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to