• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JUnit, Eclipse, and Drools

 
Mike Dean
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a plugin that contains core Drools jars and their dependencies. When I use the plugin in my RCP, it functions flawlessly. The RCP works, etc.

When I try to unit test, however, something is foul about classloading or something. Whether I add the plugin to the classpath of the unit test configuration in Eclipse, or stick everything in my Java home extensions, etc., I get an error. Here is the test setup code:



Note that this code is nearly identical to the code I use in my RCP, and it works there. However, when I try to run the code as a unit test:



I have gone into the source of Drools, and cannot find any hint of what is wrong here. But the question I think revolves around how Eclipse handles the classpath of unit tests, compared to how classpaths are handled when applications are compiled into RCP standalones.

Thanks in advance. This has stumped me now for about 3 weeks.

- Mike
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic