CHAPTER 9
Clients and Testing
In this chapter we will discuss:
- Building clients using RestTemplate
- Spring Test framework basics
- Unit testing MVC controllers
- Integration testing MVC controllers
We have looked at building REST services using Spring. In this chapter we will look at building clients that consume these REST services. We will also examine the Spring Test framework that can be used to perform unit and end-to-end testing of REST services.
QuickPoll Java Client
Consuming REST services involves building a JSON or XML request payload, transmitting the payload via HTTP/HTTPS, and consuming the returned JSON response. This flexibility opens ...
Get Spring REST 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.