[
https://issues.apache.org/jira/browse/JCR-3528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Parvulescu updated JCR-3528:
---------------------------------
Attachment: JCR-3528.patch
proposed patch to tweak the node type selection bits:
- added method to return all the existing node types, instead of just the
first one
- browse through this list and choose one that has a non-abstract parent which
can be used for the test
> Node type selection for
> CanAddChildNodeCallWithNodeTypeTest#testResidualAndLegalType is not optimal
> ---------------------------------------------------------------------------------------------------
>
> Key: JCR-3528
> URL: https://issues.apache.org/jira/browse/JCR-3528
> Project: Jackrabbit Content Repository
> Issue Type: Improvement
> Components: jackrabbit-jcr-tests
> Reporter: Alex Parvulescu
> Assignee: Alex Parvulescu
> Priority: Minor
> Attachments: JCR-3528.patch
>
>
> Similar to JCR-3524, the node type selection for this test is influenced by
> the underlying storage.
> It can choose the fist node type even if that is invalid for the purpose of
> the test and fail the test.
> For example running against an Oak backend the test can choose _nt:folder_ as
> a parent and _nt:hierarchyNode_ as a child, but because _nt:hierarchyNode_ is
> abstract it cannot be used, so the test fails for the wrong reason.
--
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