@Test public void isUnauthorized_shouldReturnTrueIfResponseCodeIs401() throws Exception { assertThat(new TestApiResponse(401, asStream("Access Denied")).isUnauthorized(), equalTo(true)); }
public boolean isUnauthorized() { return httpResponseCode == 401; }
ApiResponse { public boolean isUnauthorized() { return httpResponseCode == 401; } }
ApiResponse { public boolean isUnauthorized() { return httpResponseCode == 401; } ApiResponse(int httpCode); }
ApiResponse { public boolean isUnauthorized() { return httpResponseCode == 401; } ApiResponse(int httpCode); int getResponseCode(); boolean isSuccess(); boolean isUnauthorized(); }
ApiResponse { public boolean isUnauthorized() { return httpResponseCode == 401; } ApiResponse(int httpCode); int getResponseCode(); boolean isSuccess(); boolean isUnauthorized();  }