O'Reilly logo

Spring REST by Sudha Belida, Balaji Varanasi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 9

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required