JUnit (http://junit.org/) is a framework to write repeatable tests in Java. As the name implies, the primary purpose of JUnit is to verify the functionality of individual units of code. However, by integrating with the external libraries, JUnit tests can be extended to verify integration as well as system tests.
Since the examples are the best way to describe something, without spending time on abstract descriptions, let's look into adding a JUnit test into our sample
hotel_reservationproject in your favorite Integrated Development Environment (IDE). (Please revisit Chapter 2, The Sample Project to recap your memory on the project structure and location.)
testdirectory at the ...