Description
The enforcement should be covered by tests which try to
- create a node with missing mandatory child node
- delete a mandatory child node (already covered in https://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java?revision=1776914&view=markup#l514)
- create a node with mandatory child node (already covered in https://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java?revision=1776914&view=markup#l514);
With the JCR-4741-v01.patch running the integration tests on jackrabbit-core fails with
[INFO] Running org.apache.jackrabbit.core.integration.JCRAPITest [ERROR] Tests run: 1908, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 20.185 s <<< FAILURE! - in org.apache.jackrabbit.core.integration.JCRAPITest [ERROR] testAddNodeLackingMandatoryChildNode(org.apache.jackrabbit.test.api.NodeTest) Time elapsed: 0.038 s <<< FAILURE! junit.framework.AssertionFailedError: Adding a node without its mandatory child node should throw a ConstraintViolationException at org.apache.jackrabbit.test.api.NodeTest.testAddNodeLackingMandatoryChildNode(NodeTest.java:525)