Chapter 13. JUnit: Automating Unit Testing
Testing may not be your favorite task as a programmer; it probably rates just above documentation. Yet here is a tool that has made testing more bearable and more productive for many Java developers—and not just because it has pretty colors and flashing lights.
What You Will Learn
What JUnit is and why it’s getting so much attention.
How some people test before they start coding.
How to install and invoke JUnit.
The major JUnit concepts that you need to understand.
What assertions are available in JUnit.
JUnit: Why All the Fuss?
JUnit is a framework for unit tests. It consists of a handful of classes which you can use to build bunches of test cases for testing your application. JUnit also comes with three test ...
Get Java™ Application Development on Linux® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.