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

[osgi-mocks] Support setting a version for MockBundles

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Testing
    • None

    Description

      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:

      1. add a method setVersion(...)
      2. throw Illegalstate("no version set") if version == null
      3. return version if set without any exception

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              laeubi Christoph Läubrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m