Search in sources :

Example 1 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project FastDev4Android by jiangqqlmj.

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 2 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project android-volley by mcxiaoke.

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)

Example 3 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project android-volley by mcxiaoke.

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 4 with HttpPatch

use of com.android.volley.toolbox.HttpClientStack.HttpPatch in project iosched by google.

the class HttpClientStackTest method testCreatePatchRequestWithBody.

public void testCreatePatchRequestWithBody() 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)

Example 5 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)

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