You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2015/08/28 17:11:46 UTC

[jira] [Resolved] (SLING-4962) getNodes() always returns empty iterator for root node

     [ https://issues.apache.org/jira/browse/SLING-4962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Munteanu resolved SLING-4962.
------------------------------------
    Resolution: Fixed

> 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)