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/06/09 17:34:00 UTC

[jira] [Commented] (SLING-4781) Implement MockBundle.getEntryPaths

    [ https://issues.apache.org/jira/browse/SLING-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14579094#comment-14579094 ] 

Robert Munteanu commented on SLING-4781:
----------------------------------------

First implementation done in http://svn.apache.org/r1684449. A couple of points to discuss:

- I had to adjust {{getEntry}} to make it symmetrical with {{getEntryPaths}} . The {{getEntryPaths}} method now returns classpath resources, but with relative names, to comply with the OSGi spec. However, {{getEntry}} would fail with relative paths. So I added a fallback to the method. Perhaps we can remove it for now
- {{getEntryPaths}} assumes for now that we can always resolve resources to Files. In my testing this was always the case, but maybe there are cases that were not covered

> Implement MockBundle.getEntryPaths
> ----------------------------------
>
>                 Key: SLING-4781
>                 URL: https://issues.apache.org/jira/browse/SLING-4781
>             Project: Sling
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: Testing OSGi Mock 1.3.0
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: Testing OSGi Mock 1.4.0
>
>
> The MockBundle already supports the {{getEntry}} method, but not {{getEntryPaths}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)