dimas-b commented on code in PR #864:
URL: https://github.com/apache/polaris/pull/864#discussion_r1929024105
##########
quarkus/service/src/test/java/org/apache/polaris/service/quarkus/IcebergExceptionMapperTest.java:
##########
@@ -52,4 +68,17 @@ void fileIOExceptionMapping(RuntimeException ex, int
statusCode) {
assertThat(response.getEntity()).extracting("message").isEqualTo(ex.getMessage());
}
}
+
+ /**
+ * Creates a mock of the Azure-specific HttpResponse object, as it's quite
difficult to construct
+ * a "real" one.
+ *
+ * @param statusCode
+ * @return
+ */
+ private static HttpResponse mockAzureResponse(int statusCode) {
+ HttpResponse res = mock(HttpResponse.class);
+ when(res.getStatusCode()).thenReturn(statusCode);
+ return res;
+ }
Review Comment:
I see. Sorry, I missed that :sweat_smile:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]