Summary

In this final chapter, you learned the importance of testing a web application and saw how to unit test the domain object. Next we learned how to perform integration test on validator using the Spring Test framework. You also saw how to test a normal controller using the Spring Test Context framework. As the last exercise, you saw how to test REST-based controllers and how to use the mock session object from the Spring Test framework. In that exercise, you also learned how to verify the JSON path.

Get Spring MVC Beginner’s Guide 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.