Book Image

Building a RESTful Web Service with Spring

By : Ludovic Dewailly
Book Image

Building a RESTful Web Service with Spring

By: Ludovic Dewailly

Overview of this book

Table of Contents (17 chapters)
Building a RESTful Web Service with Spring
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 8. Testing RESTful Web Services

Testing is an inherent aspect of building commercial software solutions. Indeed, testing should be considered at every step of the development process, and a software package should only be considered ready when the complete test suite is successful.

In this chapter, we will apply the following testing strategies to our sample RESTful web service:

  • Unit testing Spring controllers

  • Mocking

  • Testing security

  • Integration strategies

  • Other forms of testing to consider