Search in sources :

Example 6 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch 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);
}
Also used : HttpUriRequest(org.apache.http.client.methods.HttpUriRequest) HttpPatch(com.android.volley.toolbox.HttpClientStack.HttpPatch) HttpPatch(com.android.volley.toolbox.HttpClientStack.HttpPatch) TestRequest(com.android.volley.mock.TestRequest)

Example 7 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project TaEmCasa by Dionen.

the class HttpClientStackTest method createPatchRequestWithBody.

@Test
public void createPatchRequestWithBody() throws Exception {
    TestRequest.PatchWithBody request = new TestRequest.PatchWithBody();
    assertEquals(request.getMethod(), Method.PATCH);
    HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
    assertTrue(httpRequest instanceof HttpPatch);
}
Also used : HttpUriRequest(org.apache.http.client.methods.HttpUriRequest) HttpPatch(com.android.volley.toolbox.HttpClientStack.HttpPatch) TestRequest(com.android.volley.mock.TestRequest) Test(org.junit.Test)

Example 8 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project TaEmCasa by Dionen.

the class HttpClientStackTest method createPatchRequest.

@Test
public void createPatchRequest() throws Exception {
    TestRequest.Patch request = new TestRequest.Patch();
    assertEquals(request.getMethod(), Method.PATCH);
    HttpUriRequest httpRequest = HttpClientStack.createHttpRequest(request, null);
    assertTrue(httpRequest instanceof HttpPatch);
}
Also used : HttpUriRequest(org.apache.http.client.methods.HttpUriRequest) HttpPatch(com.android.volley.toolbox.HttpClientStack.HttpPatch) HttpPatch(com.android.volley.toolbox.HttpClientStack.HttpPatch) TestRequest(com.android.volley.mock.TestRequest) Test(org.junit.Test)

Aggregations

TestRequest (com.android.volley.mock.TestRequest)8 HttpPatch (com.android.volley.toolbox.HttpClientStack.HttpPatch)8 HttpUriRequest (org.apache.http.client.methods.HttpUriRequest)8 Test (org.junit.Test)6