Closed
Description
Keith Donald opened SPR-7995 and commented
public class MockHttpRequest implements HttpRequest {
private final HttpHeaders headers = new HttpHeaders();
private HttpMethod method;
private URI uri;
public MockHttpRequest(String uri) {
this(HttpMethod.GET, uri);
}
public MockHttpRequest(HttpMethod method, String uri) {
try {
this.uri = new URI(uri);
} catch (URISyntaxException e) {
throw new IllegalArgumentException("Invalid uri: '"+ uri + "'", e);
}
this.method = method;
}
public HttpHeaders getHeaders() {
return headers;
}
public HttpMethod getMethod() {
return method;
}
public URI getURI() {
return uri;
}
}
Affects: 3.1 M1
Issue Links:
- Add first class support for client-side REST tests [SPR-7951] #12606 Add first class support for client-side REST tests ("Cloned from")