Outdated code example correction in section 10.3.6
This commit is contained in:
parent
53017da0c3
commit
7cf5e3a508
|
|
@ -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 ...
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue