How do I install JUnit? First I will download the lastest version of JUnit.

Q

How do I install JUnit? First I will download the lastest version of JUnit.

✍: FYICenter.com QA Team

A

Then I will extract all files from the downloaded file.

The most important file should be the JUnit JAR file: junit-4.4.jar, which contains all JUnit class packages.

To verify junit-4.4.jar, I will run the org.junit.runner.JUnitCore class:

java -cp junit-4.4.jar org.junit.runner.JUnitCore

JUnit version 4.4

Time: 0

OK (0 tests)

2008-01-09, 6032👍, 0💬