Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,21 @@ void whenGettingStatementIteratorViaMultipeResponsesThenResultIsExpected()

}

@Test
void givenApiResponseIsEmptyWhenGettingStatementIteratorThenMissingResponseBodyExceptionIsThrown() {

// Given Api Response Is Empty
mockWebServer.enqueue(new MockResponse().setStatus("HTTP/1.1 200 OK").setHeader("Content-Type",
"application/json"));

// When Getting Statement Iterator
final var response = client.getStatementIterator();

// Then MissingResponseBodyException Is Thrown
assertThrows(MissingResponseBodyException.class, () -> response.block());

}

@Test
void whenGettingStatementIteratorViaMultipeResponsesThenRequestsAreExpected()
throws InterruptedException {
Expand Down