use of org.apache.http.client.methods.HttpUriRequest in project iosched by google.
the class HttpClientStackTest method testCreateHeadRequest.
public void testCreateHeadRequest() throws Exception {
TestRequest.Head request = new TestRequest.Head();
assertEquals(request.getMethod(), Method.HEAD);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpHead);
}
use of org.apache.http.client.methods.HttpUriRequest in project iosched by google.
the class HttpClientStackTest method testCreateDeprecatedGetRequest.
public void testCreateDeprecatedGetRequest() throws Exception {
TestRequest.DeprecatedGet request = new TestRequest.DeprecatedGet();
assertEquals(request.getMethod(), Method.DEPRECATED_GET_OR_POST);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpGet);
}
use of org.apache.http.client.methods.HttpUriRequest in project iosched by google.
the class HttpClientStackTest method testCreatePatchRequest.
public void testCreatePatchRequest() throws Exception {
TestRequest.Patch request = new TestRequest.Patch();
assertEquals(request.getMethod(), Method.PATCH);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpPatch);
}
use of org.apache.http.client.methods.HttpUriRequest in project iosched by google.
the class HttpClientStackTest method testCreateDeleteRequest.
public void testCreateDeleteRequest() throws Exception {
TestRequest.Delete request = new TestRequest.Delete();
assertEquals(request.getMethod(), Method.DELETE);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpDelete);
}
use of org.apache.http.client.methods.HttpUriRequest in project iosched by google.
the class HttpClientStackTest method testCreatePutRequest.
public void testCreatePutRequest() throws Exception {
TestRequest.Put request = new TestRequest.Put();
assertEquals(request.getMethod(), Method.PUT);
HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
assertTrue(httpRequest instanceof HttpPut);
}
Aggregations