Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JUnit 4 / JUNIT_HOME Problem(Latest eclipse use Junit 3.8 instead of 4)
JUnit 4 / JUNIT_HOME Problem [message #640642] Mon, 22 November 2010 16:49
albertkao is currently offline albertkaoFriend
Messages: 46
Registered: February 2010
I use Eclipse Java EE IDE for Web Developer Helios Service Release 1.
I want to use JUnit4.

However when I run any Test using "Run As..." ==> JUnit Test it runs with
Junit 3.8 (Annotations are ignored and any class that does not contain
some "testXXX()" method prints out a warning)

I found a classpath variable "JUNIT_HOME (non modifiable, deprecated)"
that still points to an old 3.8.2 version of jUnit, but I do not see a way of getting rid of this variable

I find a workaround by going to _each_ project.
Go to Java Build Path -> Libraries in the Project Properties dialog.
Click the Add Library... button, select JUnit, and click Next.
However, it is tedious to do this for each project.
Is there a better way?
Previous Topic:Java 7 support in Eclipse 3.7
Next Topic:Parser returned from LaunchingPlugin.getParser() not threadsafe
Goto Forum:

Current Time: Mon Jun 18 04:02:25 GMT 2018

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

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

Back to the top