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

MockBundleContent.getProperty should return null

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Testing OSGi Mock 1.2.0
    • Testing OSGi Mock 1.3.0
    • Testing
    • None

    Description

      MockBundleContext.getProperty currently throws UnsupportedOperationException. Instead if it can return null that would allow some scenarios to be tested where logic checks for Framework properties.

      Or if possible allow passing of Properties to represent Framework properties say why delegating to System property to passing an explicit set of properties while instantiate MockBundleContext

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            sseifert Stefan Seifert
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment