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

Michael Dürig commented on SLING-2763:
--------------------------------------

This test depends on a specific implementation off how a repository handles 
node type constraints. According to JSR283 it is fine for a repository 
implementation to defer node type checks to save. So while fixing the test is 
one thing, we should also make sure that no other parts of Sling depend on this 
specific behaviour of Jackrabbit 2.
                
> Tweak PostServletCreateTest.testCreatingNodeUnderFile test to allow the 
> presence of a PersistenceException
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-2763
>                 URL: https://issues.apache.org/jira/browse/SLING-2763
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>            Reporter: Alex Parvulescu
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>         Attachments: SLING-2763.patch
>
>
> Running {{PostServletCreateTest.testCreatingNodeUnderFile}} against an Oak 
> repo, the test fails because it expects to see a 
> {{ConstraintViolationException}} on the page.
> As oak has a different behavior wrt the moment when it throws the 
> {{ConstraintViolationException}}, it may end up being wrapped into a 
> {{PersistenceException}} which will fail the test even if the overall 
> expectations are met.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to