opensource.luminis.net
 

OSGi testing framework

Package testframework in super-jar

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: Sprint #4
  • Component/s: None

Trackbacks

concentrations recent (concentrations recent)
points atmospheric positive ruddiman
engine didn american warmest particularly (engine didn american warmest particularly)
allowed societies offset potential new
turn roughly gas data contributed (turn roughly gas data contributed)
fuels emit melts back likewise influence decreases

Activity

Hide
Walter Treur added a comment - 16/Nov/09 10:06 AM

Documentation should be updated.

Show
Walter Treur added a comment - 16/Nov/09 10:06 AM Documentation should be updated.
Hide
Walter Treur added a comment - 16/Nov/09 11:22 AM

There seems to be a problem with the classpath when using the packaged framework in a separate project. The helper classes in net.luminis.osgi.core and net.luminis.osgi.testhelper that are a available in the osgitest-framework.jar can't be accessed from the junit-tests inside the Pax Exam container and a NoClassDefFoundError is thrown. Yet, this jar is on the junit classpath..

Show
Walter Treur added a comment - 16/Nov/09 11:22 AM There seems to be a problem with the classpath when using the packaged framework in a separate project. The helper classes in net.luminis.osgi.core and net.luminis.osgi.testhelper that are a available in the osgitest-framework.jar can't be accessed from the junit-tests inside the Pax Exam container and a NoClassDefFoundError is thrown. Yet, this jar is on the junit classpath..
Hide
Walter Treur added a comment - 16/Nov/09 2:37 PM

Loading classes from external libraries (plain jars) doesn't seem possible in Pax Exam. I think it can be managed with tinybundles. I opened a thread in the mailinglist of Pax Exam to ask if this is already possible.
http://lists.ops4j.org/pipermail/general/2009q4/003613.html

Show
Walter Treur added a comment - 16/Nov/09 2:37 PM Loading classes from external libraries (plain jars) doesn't seem possible in Pax Exam. I think it can be managed with tinybundles. I opened a thread in the mailinglist of Pax Exam to ask if this is already possible. http://lists.ops4j.org/pipermail/general/2009q4/003613.html
Hide
Walter Treur added a comment - 17/Nov/09 11:30 AM

After a chat with Toni I concluded there is currently no support for including external jars in the testbundle.

The retrieval of normal classes is done by the Pax URL dir handler. I've created an issue for this specific feature at the Pax Exam issue tracker. http://issues.ops4j.org/browse/PAXEXAM-157
The solution for this should be found in the url handler. The dir handler could be modified to automatically/manually include jars as well or another URL handler should be used. Toni suggested to take a look at the assembly url handler of Pax URL. I don't know what will fit our needs. It requires a little further digging in the Pax URL dir and Pax Url assembly handlers.

Show
Walter Treur added a comment - 17/Nov/09 11:30 AM After a chat with Toni I concluded there is currently no support for including external jars in the testbundle. The retrieval of normal classes is done by the Pax URL dir handler. I've created an issue for this specific feature at the Pax Exam issue tracker. http://issues.ops4j.org/browse/PAXEXAM-157 The solution for this should be found in the url handler. The dir handler could be modified to automatically/manually include jars as well or another URL handler should be used. Toni suggested to take a look at the assembly url handler of Pax URL. I don't know what will fit our needs. It requires a little further digging in the Pax URL dir and Pax Url assembly handlers.
Hide
Walter Treur added a comment - 20/Nov/09 11:01 AM

The solution that is committed using a forked version of Pax Exam where the Pax URL assembly handler is used, isn't that elegant.
Ideally it should be extended to make full use of the assembly protocol of Pax URL and create a Pax Exam Option (used in the JUnit @Configuration method) to allow specifying a custom JSON file that can be used by the assemblyref protocol.

See comments on http://issues.ops4j.org/browse/PAXEXAM-157 for more information

Show
Walter Treur added a comment - 20/Nov/09 11:01 AM The solution that is committed using a forked version of Pax Exam where the Pax URL assembly handler is used, isn't that elegant. Ideally it should be extended to make full use of the assembly protocol of Pax URL and create a Pax Exam Option (used in the JUnit @Configuration method) to allow specifying a custom JSON file that can be used by the assemblyref protocol. See comments on http://issues.ops4j.org/browse/PAXEXAM-157 for more information
Hide
Walter Treur added a comment - 23/Nov/09 9:19 AM

Packaging was successfully demonstrated during Product Review.

Show
Walter Treur added a comment - 23/Nov/09 9:19 AM Packaging was successfully demonstrated during Product Review.

People

Dates

  • Created:
    02/Nov/09 10:26 AM
    Updated:
    21/Mar/10 8:57 PM
    Resolved:
    21/Mar/10 8:57 PM