Outdated code example correction in section 10.3.6

This commit is contained in:
Marcin Mielnicki 2014-03-03 22:20:28 +01:00
parent 53017da0c3
commit 7cf5e3a508
1 changed files with 1 additions and 1 deletions

View File

@ -20618,7 +20618,7 @@ requests and provide "stub" responses:
RestTemplate restTemplate = new RestTemplate();
MockRestServiceServer mockServer = MockRestServiceServer.createServer(restTemplate);
mockServer.expect(requestTo("/greeting")).andRespond(withSuccess("Hello world", "text/plain"));
mockServer.expect(requestTo("/greeting")).andRespond(withSuccess("Hello world", MediaType.TEXT_PLAIN));
// use RestTemplate ...