Summary

This chapter explained the unit testing strategy for the presentation layer and provided examples on front controller servlets and Spring MVC.

By now, you should be able to unit test the web tier components and isolate the view components from the presentation logic.

The next chapter will cover the unit testing of the database layer.

Get Mastering Unit Testing Using Mockito and JUnit 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.