justinmclean commented on issue #7589:
URL: https://github.com/apache/gravitino/issues/7589#issuecomment-3043495109
Here's a possible test for this:
```
@Test
public void testGetWithNullHeaders() throws Exception {
Item body = new Item(0L, "hank");
ErrorHandler onError = mock(ErrorHandler.class);
doThrow(new RuntimeException("Failure
response")).when(onError).accept(any());
String path = addRequestTestCaseAndGetPath(Method.GET, body, 200, false,
true);
Item response = restClient.get(path, Item.class, (Map<String, String>)
null, onError);
Assertions.assertEquals(body, response);
verify(onError, never()).accept(any());
}
```
--
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]