Summary

In this final chapter, you saw the importance of testing a web application and you saw how to test the validator using the Spring Test framework. You also found out how to test a normal Controller using the Spring Test context framework. As a last exercise, you also discovered how to test REST-based Controllers and how to use the mock session object from the Spring Test framework. During that exercise, you also learned how to use the JSON path library for assertion.

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.