[
https://issues.apache.org/jira/browse/SLING-11231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert reassigned SLING-11231:
--------------------------------------
Assignee: Stefan Seifert
thanks, i've added some comments in
https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/pull/19
> [osgi-mocks] Support setting a version for MockBundles
> ------------------------------------------------------
>
> Key: SLING-11231
> URL: https://issues.apache.org/jira/browse/SLING-11231
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Reporter: Christoph Läubrich
> Assignee: Stefan Seifert
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Currently MockBundle throws "UnsupportedOperation" for getVersion().
> It would be useful for certain rarer cases to have a call to that method.
> I'd like to suggest the following:
> # add a method setVersion(...)
> # throw Illegalstate("no version set") if version == null
> # return version if set without any exception
--
This message was sent by Atlassian Jira
(v8.20.1#820001)