You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Charles Moulliard (JIRA)" <ji...@apache.org> on 2011/03/25 14:15:05 UTC
[jira] [Created] (KARAF-532) KarafMock allowing to test blueprin
config files or class annoted
KarafMock allowing to test blueprin config files or class annoted
-----------------------------------------------------------------
Key: KARAF-532
URL: https://issues.apache.org/jira/browse/KARAF-532
Project: Karaf
Issue Type: New Feature
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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KARAF-532) KarafMock allowing to test blueprin
config files or class annoted
Posted by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KARAF-532?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-532:
---------------------------------------
Component/s: tooling
runtime
Fix Version/s: 3.1.0
> KarafMock allowing to test blueprin config files or class annoted
> -----------------------------------------------------------------
>
> Key: KARAF-532
> URL: https://issues.apache.org/jira/browse/KARAF-532
> Project: Karaf
> Issue Type: New Feature
> Components: runtime, tooling
> Reporter: Charles Moulliard
> Fix For: 3.1.0
>
>
> 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 is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira