Index: jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/JackrabbitRepositoryStub.properties =================================================================== --- jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/JackrabbitRepositoryStub.properties (revision 1902459) +++ jackrabbit-core/src/main/resources/org/apache/jackrabbit/core/JackrabbitRepositoryStub.properties (working copy) @@ -184,6 +184,11 @@ javax.jcr.tck.NodeTest.testAddNodeItemExistsException.nodetype=nt:folder # Test class: NodeTest +# Test method: testAddNodeLackingMandatoryChildNode +# nodetype that has a mandatory child node definition +javax.jcr.tck.NodeTest.testAddNodeLackingMandatoryChildNode.nodetype2=nt:file + +# Test class: NodeTest # Test method: testRemoveMandatoryNode # nodetype that has a mandatory child node definition javax.jcr.tck.NodeTest.testRemoveMandatoryNode.nodetype2=nt:file Index: jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java =================================================================== --- jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java (revision 1902459) +++ jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java (working copy) @@ -499,6 +499,34 @@ } /** + * Creates a node without its mandatory child node using {@link + * Node#addNode(String, String)} and then saves. + *
+ * This should throw a {@link ConstraintViolationException}. + *
+ * Prerequisites:
javax.jcr.tck.NodeTest.testAddNodeLackingMandatoryChildNode.nodetype2
+ * a node type that has a mandatory child node