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