Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plug-in JUnit Tests and native DLL - classpath issues
Plug-in JUnit Tests and native DLL - classpath issues [message #331454] Mon, 08 September 2008 13:34
Eclipse UserFriend
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
Previous Topic:CompletionProposal final?
Next Topic:beyond Ganymede
Goto Forum:
  


Current Time: Wed Jul 17 20:45:34 GMT 2024

Powered by FUDForum. Page generated in 0.02973 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top