Book Image

Spring MVC Beginner's Guide

By : Amuthan Ganeshan
Book Image

Spring MVC Beginner's Guide

By: Amuthan Ganeshan

Overview of this book

Table of Contents (19 chapters)
Spring MVC Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 10. Testing Your Application

For a web application developer, testing the web applications is always a challenging task, because getting a real-time test environment for web applications requires a lot of effort. Thanks to the Spring MVC Test framework, testing Spring MVC applications is simplified.

But why do we need to consider putting in efforts to test our application? Writing good test cases for our application is kind of like buying insurance for your application. Although it does not add any functional values to your application, it will definitely save your time and effort by detecting of functionality failures early. Consider that your application is growing bigger and bigger in terms of functionality; you need some mechanism to ensure that existing functionalities are not disturbed due to the introduction of new functionalities.

Testing frameworks provide you with this kind of mechanism to ensure that your application behavior is not altered due to refactoring or the...