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

Robert Munteanu resolved SLING-11231.
-------------------------------------
    Resolution: Duplicate

I just implemented this in SLING-11913 without noticing that we already had an 
issue. Closing this one as duplicate as I already have the fix attached to a 
different issue.

> [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: 20m
>  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.10#820010)

Reply via email to