Search in sources :

Example 16 with HttpTrace

use of org.apache.http.client.methods.HttpTrace in project FastDev4Android by jiangqqlmj.

the class HttpClientStackTest method createTraceRequest.

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

Example 17 with HttpTrace

use of org.apache.http.client.methods.HttpTrace in project TaEmCasa by Dionen.

the class HttpClientStackTest method createTraceRequest.

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

Aggregations

HttpTrace (org.apache.http.client.methods.HttpTrace)17 Test (org.junit.Test)10 HttpEntity (org.apache.http.HttpEntity)6 HttpHead (org.apache.http.client.methods.HttpHead)6 HttpOptions (org.apache.http.client.methods.HttpOptions)6 HttpPost (org.apache.http.client.methods.HttpPost)6 HttpPut (org.apache.http.client.methods.HttpPut)6 HttpUriRequest (org.apache.http.client.methods.HttpUriRequest)6 HttpPatch (org.apache.http.client.methods.HttpPatch)5 CloseableHttpClient (org.apache.http.impl.client.CloseableHttpClient)5 TestRequest (com.android.volley.mock.TestRequest)4 CloseableHttpResponse (org.apache.http.client.methods.CloseableHttpResponse)4 UnsupportedEncodingException (java.io.UnsupportedEncodingException)3 URI (java.net.URI)3 HttpResponse (org.apache.http.HttpResponse)3 HttpGet (org.apache.http.client.methods.HttpGet)3 StringEntity (org.apache.http.entity.StringEntity)3 DefaultHttpClient (org.apache.http.impl.client.DefaultHttpClient)3 IOException (java.io.IOException)2 URL (java.net.URL)2