Searched refs:addPendingHttpResponse (Results 1 – 5 of 5) sorted by relevance
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | DefaultRequestDirectorTest.java | 60 Robolectric.addPendingHttpResponse(200, "a happy response body"); in tearDown_EnsureStaticStateIsReset() 65 Robolectric.addPendingHttpResponse(new TestHttpResponse(200, "a happy response body")); in shouldGetHttpResponseFromExecute() 75 Robolectric.addPendingHttpResponse(new TestHttpResponse(200, "a happy response body")); in shouldPreferPendingResponses() 176 Robolectric.addPendingHttpResponse(200, "earlier"); in clearPendingHttpResponses() 178 Robolectric.addPendingHttpResponse(500, "later"); in clearPendingHttpResponses() 210 Robolectric.addPendingHttpResponse(200, "a happy response body"); in shouldGetHttpResponseFromExecuteSimpleApi() 219 Robolectric.addPendingHttpResponse(200, "a happy response body"); in shouldHandleMultipleInvocations() 220 Robolectric.addPendingHttpResponse(201, "another happy response body"); in shouldHandleMultipleInvocations() 234 Robolectric.addPendingHttpResponse(200, "a happy response body"); in shouldHandleMultipleInvocationsOfExecute() 235 Robolectric.addPendingHttpResponse(201, "another happy response body"); in shouldHandleMultipleInvocationsOfExecute() [all …]
|
D | AndroidHttpClientTest.java | 37 Robolectric.addPendingHttpResponse(200, "foo"); in testExecute()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/ |
D | FakeHttpLayer.java | 37 public void addPendingHttpResponse(int statusCode, String responseBody, Header... headers) { in addPendingHttpResponse() method in FakeHttpLayer 38 addPendingHttpResponse(new TestHttpResponse(statusCode, responseBody, headers)); in addPendingHttpResponse() 41 public void addPendingHttpResponse(final HttpResponse httpResponse) { in addPendingHttpResponse() method in FakeHttpLayer 42 addPendingHttpResponse(new HttpResponseGenerator() { in addPendingHttpResponse() 50 public void addPendingHttpResponse(HttpResponseGenerator httpResponseGenerator) { in addPendingHttpResponse() method in FakeHttpLayer
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/ |
D | Robolectric.java | 1075 …public static void addPendingHttpResponse(int statusCode, String responseBody, Header... headers) { in addPendingHttpResponse() method in Robolectric 1076 getFakeHttpLayer().addPendingHttpResponse(statusCode, responseBody, headers); in addPendingHttpResponse() 1089 getFakeHttpLayer().addPendingHttpResponse(statusCode, responseBody, contentType); in addPendingHttpResponseWithContentType() 1097 public static void addPendingHttpResponse(HttpResponse httpResponse) { in addPendingHttpResponse() method in Robolectric 1098 getFakeHttpLayer().addPendingHttpResponse(httpResponse); in addPendingHttpResponse() 1106 public static void addPendingHttpResponse(HttpResponseGenerator httpResponseGenerator) { in addPendingHttpResponse() method in Robolectric 1107 getFakeHttpLayer().addPendingHttpResponse(httpResponseGenerator); in addPendingHttpResponse()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/ |
D | RobolectricTest.java | 183 Robolectric.addPendingHttpResponse(200, "a happy response body"); in makeRequest()
|