Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade eclipse 3.5(Galileo) JUnit

Tags:

junit

eclipse

I would like to upgrade the JUnit version of my Eclipse Galileo (on windows) to JUnit 4.8.1 instead of the included JUnit 4.5. There does not appear to be a plugin update to use the new version or a way to change the location of the JUnit 4 jars. How can I update to the new version and/or use a JUnit jar not under the eclipse install directory?

like image 423
Andrew Avatar asked Feb 26 '10 20:02

Andrew


1 Answers

For plain java projects

You could add the junit.jar you want to use as a file in your project, add it to the build path, and remove the eclipse defined junit library from the build path (assuming it was there).

For plugin projects

You can do as above or, create a new plugin from the junit 4.8 jar and add it to your test plugin's dependencies.

like image 135
ChrisH Avatar answered Nov 06 '22 11:11

ChrisH