[
https://issues.apache.org/jira/browse/SLING-11913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Munteanu resolved SLING-11913.
-------------------------------------
Resolution: Fixed
> Implement MockBundle.getVersion
> -------------------------------
>
> Key: SLING-11913
> URL: https://issues.apache.org/jira/browse/SLING-11913
> Project: Sling
> Issue Type: Improvement
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Major
> Fix For: Testing OSGi Mock 3.3.10
>
>
> {{MockBundle.getVersion()}} is not implemented and always throws an
> UnsupportedOperationException. This can be trivially be implemented with a
> getter and a setter. For a default value, we can use
> {{Version.emptyVersion}}, as indicated in the javadoc
> {quote} If this bundle does not have a specified version then \{@link
> Version#emptyVersion\} is returned.{quote}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)