Searched refs:testHttpResponse (Results 1 – 1 of 1) sorted by relevance
128 TestHttpResponse testHttpResponse = new TestHttpResponse(200, "a cheery response body"); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams() local129 Robolectric.addHttpResponseRule("http://some.uri", testHttpResponse); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()131 assertThat(testHttpResponse.entityContentStreamsHaveBeenClosed(), equalTo(true)); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()136 assertThat(testHttpResponse.entityContentStreamsHaveBeenClosed(), equalTo(false)); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()141 assertThat(testHttpResponse.entityContentStreamsHaveBeenClosed(), equalTo(false)); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()144 assertThat(testHttpResponse.entityContentStreamsHaveBeenClosed(), equalTo(false)); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()147 assertThat(testHttpResponse.entityContentStreamsHaveBeenClosed(), equalTo(true)); in shouldReturnRequestsByRule_KeepsTrackOfOpenContentStreams()