You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2015/05/26 10:35:17 UTC

[jira] [Updated] (KARAF-532) KarafMock allowing to test blueprint config files or class annoted

     [ https://issues.apache.org/jira/browse/KARAF-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-532:
---------------------------------------
    Fix Version/s:     (was: 4.0.0.M3)

> KarafMock allowing to test blueprint config files or class annoted
> ------------------------------------------------------------------
>
>                 Key: KARAF-532
>                 URL: https://issues.apache.org/jira/browse/KARAF-532
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-core, karaf-tooling
>            Reporter: Charles Moulliard
>
> Some OSGI projects requires that we have OSGI platform running to test them (ex : Aries Blueprint). Karaf project does not provide any Mock component for doing that and so it is not possible to make tests about Blueprint using a java Unit test + spring. 
> http://aries.15396.n3.nabble.com/Using-Aries-outside-OSGi-Container-Using-Aries-like-SpringApplicationContext-td2721343.html
> We could create a mock component to allow that. Spring DM project has created a Mock class (http://static.springsource.org/osgi/docs/1.2.1/reference/html-single/#testing:mocks) that we could reuse but the approach followed by Eclipse Virgo could be more clever. They have created Stubs classes (http://wiki.eclipse.org/Virgo/Test) registering through interfaces the OSGI classes of the frameworks who can be used in unit test. 
> Question : Who should be the owner of that (karaf or aries) ?
> Charles



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)