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

Christoph Läubrich updated SLING-11231:
---------------------------------------
    Summary: [osgi-mocks] Support setting a version for MockBundles  (was: 
Support setting a version for MockBundles)

> [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
>            Priority: Major
>
> 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)

Reply via email to