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] [Commented] (DERBY-5902) Test Derby OSGi bundle
Date Fri, 17 Aug 2012 15:21:38 GMT

    [ https://issues.apache.org/jira/browse/DERBY-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436783#comment-13436783

Mohamed Nufail commented on DERBY-5902:

Yes, the dependencies are a set of jar files. But they are provided only through Maven.
To manually obtain them use maven. Get the attached pom.xml file into a folder and execute
"mvn dependency:copy-dependencies" command from inside that folder. Jars will be inside
target/dependency folder.

You can execute this test as a standalone test using junit test runner. Add the Jars to the

classpath and execute the test class using junit.
java -cp 'jars/*:classes' junit.textui.TestRunner org...PlumbingOSGiTest

Make sure junit is in classpath and derby.jar could be found on the location mentioned in
Gave it ' new File(PathUtils.getBaseDir()).getParent() + "/jars/sane/derby.jar" ' because
the ant 
build executes tests inside a folder in Derby root directory. Change it accordingly when running
the test standalone.
> 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, PlumbingOSGiTest.java, pom.xml, Probe.java
> 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