Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-11913

Implement MockBundle.getVersion

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Testing OSGi Mock 3.3.10
    • None
    • None

    Description

      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

      If this bundle does not have a specified version then {@link Version#emptyVersion} is returned.

      Attachments

        Issue Links

          Activity

            People

              rombert Robert Munteanu
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: