How to import junit so you can do unit tests with it

  1. Download junit
  2. In eclipse, click the Project Menu, then click Properties
  3. Now, click Java Build Path, then go to the Libraries tab
  4. Click Add External JARs
  5. Select the junit-4.4.jar file you just downloaded, and click Open, then Click OK
Now you should be able to make and run test cases.