[
https://issues.apache.org/jira/browse/SLING-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert closed SLING-4962.
---------------------------------
> getNodes() always returns empty iterator for root node
> ------------------------------------------------------
>
> Key: SLING-4962
> URL: https://issues.apache.org/jira/browse/SLING-4962
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Affects Versions: Testing JCR Mock 1.1.8
> Reporter: Andrew Khoury
> Assignee: Robert Munteanu
> Fix For: Testing JCR Mock 1.1.10
>
> Attachments: fix-root-getNodes.patch
>
>
> session.getRootNode().getNodes() always returns an empty iterator even when
> there are nodes in the MockJcr session.
> For example in the below code, s.getRootNode.getNodes().hasNext() returns
> false:
> {code:none}
> Session s = JcrMock.newSession();
> s.getRootNode().addNode("foo");
> s.getRootNode.getNodes().hasNext()
> {code}
> I attached a patch containing a test case and a fix.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)