Update Javadoc

Issue: SPR-13479
master
Rossen Stoyanchev 9 years ago
parent ffd9c62fc8
commit fb3e054a31
  1. 8
      spring-test/src/main/java/org/springframework/test/web/client/MockRestServiceServer.java
  2. 7
      spring-test/src/test/java/org/springframework/test/web/client/samples/SampleTests.java

@ -1,5 +1,5 @@
/*
* Copyright 2002-2014 the original author or authors.
* Copyright 2002-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -44,6 +44,12 @@ import org.springframework.web.client.support.RestGatewaySupport;
*
* <p>Below is an example:
* <pre class="code">
* import static org.springframework.test.web.client.match.MockRestRequestMatchers.method;
* import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo;
* import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess;
*
* ...
*
* RestTemplate restTemplate = new RestTemplate()
* MockRestServiceServer mockServer = MockRestServiceServer.createServer(restTemplate);
*

@ -26,9 +26,10 @@ import org.springframework.test.web.Person;
import org.springframework.test.web.client.MockRestServiceServer;
import org.springframework.web.client.RestTemplate;
import static org.junit.Assert.*;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.*;
import static org.springframework.test.web.client.response.MockRestResponseCreators.*;
import static org.junit.Assert.assertTrue;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.method;
import static org.springframework.test.web.client.match.MockRestRequestMatchers.requestTo;
import static org.springframework.test.web.client.response.MockRestResponseCreators.withSuccess;
/**
* Examples to demonstrate writing client-side REST tests with Spring MVC Test.

Loading…
Cancel
Save