This commit is contained in:
Phillip Webb
2016-09-02 09:33:00 +01:00
parent b5294a48b2
commit 41dc53f5dd
10 changed files with 46 additions and 57 deletions

View File

@@ -25,7 +25,7 @@ import java.util.List;
*
* @author Andy Wilkinson
*/
public class MockitoBeans implements Iterable<Object> {
class MockitoBeans implements Iterable<Object> {
private final List<Object> beans = new ArrayList<Object>();

View File

@@ -37,9 +37,9 @@ import org.springframework.web.client.RestTemplate;
import org.springframework.web.util.UriTemplateHandler;
/**
* {@link RequestExpectationManager} that strips the specified root URI from the
* request before verification. Can be used to simply test declarations when all REST
* calls start the same way. For example: <pre class="code">
* {@link RequestExpectationManager} that strips the specified root URI from the request
* before verification. Can be used to simply test declarations when all REST calls start
* the same way. For example: <pre class="code">
* RestTemplate restTemplate = new RestTemplateBuilder().rootUri("http://example.com").build();
* MockRestServiceServer server = RootUriRequestExpectationManager.bindTo(restTemplate);
* server.expect(requestTo("/hello")).andRespond(withSuccess());