[
https://issues.apache.org/jira/browse/DERBY-5902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohamed Nufail updated DERBY-5902:
----------------------------------
Attachment: Probe.java
PlumbingOSGiTest.java
Attached PlumbingOSGiTest.java and Probe.java
These two classes implement the same previous test OSGiTest, using the plumbing
API of Pax Exam. It is a low level API which does not require Pax Exam JUnit
drivers.
So in this case this test is written using JUnit 3 so that it can be used with
Derby without needing JUnit 4 jars.
But the drawbacks of this method are,
- Actual Junit test class (PlumbingOSGiTest.java) contains only the
configuration and setup of Pax Exam and the tests are in a separate class
(Probe.java). So it doesn't actually look like JUnit and is a bit complex.
- As you can see, one junit test method is used to setup the system and run the
tests. So whatever no. of tests we have JUnit will see them as one large test.
So we don't get the success/failure of individual tests.
> 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