Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Running Plugin JUnit Tests without having org.junit in Target Platform??
Running Plugin JUnit Tests without having org.junit in Target Platform?? [message #312352] Wed, 07 February 2007 11:22 Go to next message
Eclipse UserFriend
Originally posted by: user.domain.invalid

Hello to all,

On Eclipse 3.2, I have defined a minimal target platform for my rcp app
without including org.junit plugin (the plugin set that I use to run
the built app).
The reason for this is, that I want to have identical plugin sets
in development as later in the built product.

My separate Junit Plugin tests have errors now (because
they have the org.junit-Plugin in their plugin dependencies.
So I removed the dependency and added the org.junit plugin via
the JUNIT_HOME Variable to by Java Build path.
Now the plugin tests compile again.

---> The result is a ClassDefNotFound-Error when running the plugin
tests (since the org.junit is not in the target platform).
(java.lang.NoClassDefFoundError: junit/framework/TestCase)

Adding org.junit to the target platform and adding the plugin dependency
to the test plugins again solves the problem.

My question is now: Is this solvable without adding org.junit to the
target platform?

Regards,

Peter
Re: Running Plugin JUnit Tests without having org.junit in Target Platform?? [message #312365 is a reply to message #312352] Wed, 07 February 2007 13:19 Go to previous message
Eclipse UserFriend
The easiest solution is to include the junit plugin in the target
platform, but never include it in a product or application export.

Later,
PW
Previous Topic:Property Length Restriction
Next Topic:Launch object not garbage collected
Goto Forum:
  


Current Time: Tue Jul 22 15:52:26 EDT 2025

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

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

Back to the top