Lesson 30Doing Unit Testing
We now have a complete application, which is pretty cool! But how do we know we're done? How do we know that we've met all the requirements of the project? And how do we know that there are no errors? Unit testing is a technique that can help us answer these questions.
In this lesson, we will introduce the concept of unit testing, look at the JUnit automated unit testing framework, see how we can test both stateless and stateful code, and do a code-along where we add unit tests to the Class Roster application.
UNIT TESTING
Software is tested at several different points during the development of a project. Unit testing involves testing the lowest-level components of an application and is done by the software development team. The developer responsible for developing a particular component is also generally responsible for creating the unit tests for that component.
Modern unit testing involves the use of automated ...
Get Job Ready Java 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.