Searched refs:setDefaultHttpResponse (Results 1 – 3 of 3) sorted by relevance
101 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()
84 public void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse() method in FakeHttpLayer88 public void setDefaultHttpResponse(int statusCode, String responseBody) { in setDefaultHttpResponse() method in FakeHttpLayer89 setDefaultHttpResponse(new TestHttpResponse(statusCode, responseBody)); in setDefaultHttpResponse()
1204 public static void setDefaultHttpResponse(int statusCode, String responseBody) { in setDefaultHttpResponse() method in Robolectric1205 getFakeHttpLayer().setDefaultHttpResponse(statusCode, responseBody); in setDefaultHttpResponse()1208 public static void setDefaultHttpResponse(HttpResponse defaultHttpResponse) { in setDefaultHttpResponse() method in Robolectric1209 getFakeHttpLayer().setDefaultHttpResponse(defaultHttpResponse); in setDefaultHttpResponse()