Christoph Läubrich created SLING-11231:
------------------------------------------
Summary: 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
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)