JUnit Testing Framework

See JUnit.org for all the latest details.

Overview for CS400 Students

JUnit is primarily about black box testing. It is a framework for writing unit tests. I (Deb) provided a framework for writing tests in p1. But, JUnit's framework is much more sophisticated. To use this more powerful tool, you must download "their Java classes and libraries" and learn how to use them. The class files are bundled in a "jar" file for convenience.

To use JUnit, you must learn the format for writing tests that can be run by the JUnit test framework. This is similar to the work that you did to learn to write tests for p1. But, now you have to follow JUnit's rules (instead of Deb's).

JUnit has many features that (Deb's Unit testing framework did not have):

Some things that are similar or same between JUnit and Debs: