[
https://issues.apache.org/jira/browse/SLING-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14582021#comment-14582021
]
Stefan Seifert commented on SLING-4781:
---------------------------------------
the goal is to be as close to the contract defined of the OSGi Bundle API as
possible, even it it breaks with an earlier release of the mock.
the javadocs of Bundle.getEntry state:
{quote}
The specified path is always relative to the root of this bundle and may begin
with "/". A path value of "/" indicates the root of this bundle.
{quote}
in my interpretation that means a path is always absolute, and if a "/" is
missing it should be added before calling {{getClass().getResource()}}.
> 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)