You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/11/17 09:32:00 UTC
[jira] [Commented] (JCR-4741) add test coverage for mandatory non-residual child nodes
[ https://issues.apache.org/jira/browse/JCR-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445037#comment-17445037 ]
Konrad Windszus commented on JCR-4741:
--------------------------------------
With the [^JCR-4741-v01.patch] running the integration tests on jackrabbit-core fails with
{code}
[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)
{code}
> add test coverage for mandatory non-residual child nodes
> --------------------------------------------------------
>
> Key: JCR-4741
> URL: https://issues.apache.org/jira/browse/JCR-4741
> Project: Jackrabbit Content Repository
> Issue Type: Task
> Components: test
> Reporter: Julian Reschke
> Assignee: Konrad Windszus
> Priority: Minor
> Labels: candidate_jcr_2_20
> Fix For: 2.22, 2.21.9
>
> Attachments: JCR-4741-v01.patch
>
>
> 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);
--
This message was sent by Atlassian Jira
(v8.20.1#820001)