You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/03/20 09:41:00 UTC

[jira] [Commented] (SLING-7550) MockBundleContext does not get service references when class is null and filter is non-null

    [ https://issues.apache.org/jira/browse/SLING-7550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16406024#comment-16406024 ] 

ASF GitHub Bot commented on SLING-7550:
---------------------------------------

sufyanharoon opened a new pull request #2: SLING-7550 Return services even when class param is null in
URL: https://github.com/apache/sling-org-apache-sling-testing-osgi-mock/pull/2
 
 
   MockBundleContext.getServiceReferences api

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> MockBundleContext does not get service references when class is null and filter is non-null
> -------------------------------------------------------------------------------------------
>
>                 Key: SLING-7550
>                 URL: https://issues.apache.org/jira/browse/SLING-7550
>             Project: Sling
>          Issue Type: Bug
>          Components: Testing
>    Affects Versions: Testing OSGi Mock 2.3.6
>            Reporter: Sufyan Haroon
>            Priority: Major
>             Fix For: Testing OSGi Mock 2.3.8
>
>
> When invoking BundleContext [api|https://osgi.org/javadoc/r4v43/core/org/osgi/framework/BundleContext.html#getServiceReferences(java.lang.String, java.lang.String)], when the class parameter is specified as null and filter param is non-null, it is expected to return reference of all services which satisfy the filter regardless of their class. 
> When the same api is invoked in MockBundleContext, it does not returns any service references when class param is null and filter param is non-null. MockBundleContextshould behave is a way which is similar to original implementation



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)