@Test public void isSuccess_shouldReturnFalseIfResponseCodeIsIn500Range() throws Exception { assertThat(new TestApiResponse(500, asStream(GENERIC_XML)).isSuccess(), equalTo(false)); assertThat(new TestApiResponse(501, asStream(GENERIC_XML)).isSuccess(), equalTo(false)); }
public boolean isSuccess() { return httpResponseCode >= 200 && httpResponseCode < 300; }
ApiResponse { public boolean isSuccess() { return httpResponseCode >= 200 && httpResponseCode < 300; } }
ApiResponse { public boolean isSuccess() { return httpResponseCode >= 200 && httpResponseCode < 300; } ApiResponse(int httpCode); }
ApiResponse { public boolean isSuccess() { return httpResponseCode >= 200 && httpResponseCode < 300; } ApiResponse(int httpCode); int getResponseCode(); boolean isSuccess(); boolean isUnauthorized(); }
ApiResponse { public boolean isSuccess() { return httpResponseCode >= 200 && httpResponseCode < 300; } ApiResponse(int httpCode); int getResponseCode(); boolean isSuccess(); boolean isUnauthorized();  }