[
https://issues.apache.org/jira/browse/SLING-4472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-4472.
-----------------------------------
Resolution: Fixed
Fix Version/s: Testing OSGi Mock 1.2.2
Assignee: Stefan Seifert
Completed: At revision: 1664351
i started with the simple solution which returns null for the getProperty call
> MockBundleContent.getProperty should return null
> ------------------------------------------------
>
> Key: SLING-4472
> URL: https://issues.apache.org/jira/browse/SLING-4472
> Project: Sling
> Issue Type: Improvement
> Components: Testing
> Affects Versions: Testing OSGi Mock 1.2.0
> Reporter: Chetan Mehrotra
> Assignee: Stefan Seifert
> Priority: Minor
> Fix For: Testing OSGi Mock 1.2.2
>
>
> {{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}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)