The Wayback Machine - https://web.archive.org/web/20110525071833/http://www.java-forums.org:80/blogs/java-tip/27-importing-junit-jar.html
View RSS Feed

My Java Tips

Importing junit.jar

by on 05-21-2011 at 10:52 PM (49 Views)
Before you start writing unit tests, you must import junit.jar, so we have access to the testing framework. Follow these steps to import the required jar:
  • Right-click on the project name, and choose Properties.
  • In the tree on the left, select Java Build Path.
  • Next, choose Add External JARs� and browse to find junit.jar.

It will be located in "<eclipsedir>\plugins\org.junit_<version number>\junit.jar".

Once you successfully import junit.jar, close the Properties page.

blogs/java-tip/attachments/1581-importing-junit-jar-junit.jpg

Now you are ready to write your test cases.

Submit "Importing junit.jar" to Digg Submit "Importing junit.jar" to del.icio.us Submit "Importing junit.jar" to StumbleUpon Submit "Importing junit.jar" to Google

Tags: jar Add / Edit Tags
Categories
‎ Eclipse , ‎ JUnit

Comments