db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohamed Nufail (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5902) Test Derby OSGi bundle
Date Mon, 13 Aug 2012 15:36:37 GMT

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

Mohamed Nufail updated DERBY-5902:

    Attachment: pom.xml

I'm hoping to use Pax Exam [1] framework to write this test. Pax Exam can be used to start
a OSGi framework and install any bundles and run a junit test within that.

Attached OSGiTest.java which is a test class which achieves this. It is a normal JUnit 4 test
with some special annotations and configuration.

Attached pom.xml which lists the dependencies required by Pax Exam.

I used maven copy dependencies command to get all the transitive dependencies and added all
the jars to the classpath and invoked this test through the junit ant task from the Derby
ant build file similar to the other tests. Initially had some problems getting it to work.
But I was able to run it through ant just like other Derby tests.

[1] http://team.ops4j.org/wiki/display/paxexam/Pax+Exam
> Test Derby OSGi bundle
> ----------------------
>                 Key: DERBY-5902
>                 URL: https://issues.apache.org/jira/browse/DERBY-5902
>             Project: Derby
>          Issue Type: Task
>            Reporter: Mohamed Nufail
>            Assignee: Mohamed Nufail
>            Priority: Minor
>         Attachments: OSGiTest.java, pom.xml
> There is a lack of tests that test Derby's support for OSGi. I hope to provide some integration
tests to Derby OSGi bundle.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message