Download JUnit Libraries
JUnit is not provided in the default Java libraries (String
, Scanner
, etc. are provided with Java). Instead, we have to download the JUnit libraries.
- Download
junit-4.12.jar
file into yourlib
directory in your project. - Download
hamcrest-core-1.3.jar
file into yourlib
directory in your project.
Both junit-4.12.jar
and hamcrest-core-1.3.jar
are required to run test cases from the command line.
The directory structure should now be:
Paycheck
-> src
-> Paycheck.java
-> test
-> lib
-> junit-4.12.jar
-> hamcrest-core-1.3.jar
-> bin
-> Paycheck.class
-> doc
-> project_docs
-> Black Box Test Plan