Skip to content

Commit 94d790f

Browse files
pagination test
2 parents 06d0547 + 2062525 commit 94d790f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/test/java/apimatic/core/type/pagination/PaginatedDataTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ public void testInvalidPaginationWithFailingResponse() throws IOException {
5959
@Test
6060
public void testInvalidPaginationWithFailingResponseAsync()
6161
throws IOException, InterruptedException, ExecutionException {
62-
Runnable call1 = () -> {
63-
when(response.getStatusCode()).thenReturn(404);
64-
};
62+
Runnable call1 = () -> when(response.getStatusCode()).thenReturn(404);
6563
PaginatedData<String, PageWrapper<String, RecordPage>,
6664
RecordPage, CoreApiException> paginatedData = getPaginatedData(call1, null, null,
6765
new LinkPagination("$response.body#/next_link"));

0 commit comments

Comments
 (0)