Plug-in JUnit Tests and native DLL - classpath issues [message #331454] |
Mon, 08 September 2008 13:34 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: tony.tmeister.org.uk
Hi all,
I'm having a bit of trouble running some JUnit tests contained in a plug-in
fragment against an OSGi bundle that is defined as its Host plug-in. The
host bundle has a DLL and associated folder that contains some dependent
files that it uses. The DLL and data folder are at the root of the host
bundle. I am using JNA to access the underlying functions in the DLL from
the host bundle and that is all working smoothly. When unit testing the
calls to the DLL in a separate test source folder in the host bundle
everything resolves as expected. However, after moving the JUnit tests to a
plug-in fragment, I now get an unsatisfied link error when running the
tests. Looking at the user.dir system property while running the tests
reveals that the current dir is the org.mycompany.mybundle.tests directory.
Is this the reason why the native bundle cannot be resolved from the JUnit
test fragment? Do I have to perform some custom class loading from the test
fragment? Any thoughts would be appreciated.
Many thanks in advance,
Tony
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds