Home
last modified time | relevance | path

Searched refs:setDefaultHttpResponse (Results 1 – 3 of 3) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DDefaultRequestDirectorTest.java101 Robolectric.setDefaultHttpResponse(404, "no such page"); in shouldReturnRequestsByRule_MatchingMethod()
189 Robolectric.setDefaultHttpResponse(404, "no such page"); in shouldReturnRequestsByRule_WithCustomRequestMatcher()
303 Robolectric.setDefaultHttpResponse(new TestHttpResponse() { in shouldSupportConnectionTimeoutWithExceptions()
324 Robolectric.setDefaultHttpResponse(new TestHttpResponse() { in shouldSupportSocketTimeoutWithExceptions()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/tester/org/apache/http/
DFakeHttpLayer.java84 public void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse() method in FakeHttpLayer
88 public void setDefaultHttpResponse(int statusCode, String responseBody) { in setDefaultHttpResponse() method in FakeHttpLayer
89 setDefaultHttpResponse(new TestHttpResponse(statusCode, responseBody)); in setDefaultHttpResponse()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java1204 public static void setDefaultHttpResponse(int statusCode, String responseBody) { in setDefaultHttpResponse() method in Robolectric
1205 getFakeHttpLayer().setDefaultHttpResponse(statusCode, responseBody); in setDefaultHttpResponse()
1208 public static void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse() method in Robolectric
1209 getFakeHttpLayer().setDefaultHttpResponse(defaultHttpResponse); in setDefaultHttpResponse()