Skip to content

Commit 62f6514

Browse files
committed
Tests: enable pagination asserts for watched methods
1 parent 7c75aeb commit 62f6514

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

src/test/java/com/uwetrottmann/trakt5/services/SyncTest.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,7 @@ public void test_watchedMovies() throws IOException {
330330
Response<List<BaseMovie>> response = executeCallWithoutReadingBody(
331331
getTrakt().sync().watchedMovies(PAGE_ONE, LIMIT_MAX, null));
332332

333-
// As of 2026-04-29, pagination is not supported, yet
334-
// assertListPaginationHeaders(response);
333+
assertListPaginationHeaders(response);
335334
assertSyncMovies(response.body(), "watched");
336335
}
337336

@@ -360,8 +359,7 @@ public void test_watchedShows() throws IOException {
360359
Response<List<BaseShow>> response = executeCallWithoutReadingBody(
361360
getTrakt().sync().watchedShows(PAGE_ONE, LIMIT_MAX, ExtendedShowsWatched.PROGRESS));
362361

363-
// As of 2026-04-29, pagination is not supported, yet
364-
// assertListPaginationHeaders(response);
362+
assertListPaginationHeaders(response);
365363
assertSyncShows(response.body(), "watched");
366364
}
367365

@@ -391,8 +389,7 @@ public void test_watchedEpisodes() throws IOException {
391389
Response<List<WatchedEpisode>> response = executeCallWithoutReadingBody(
392390
getTrakt().sync().watchedEpisodes(PAGE_ONE, LIMIT_MAX));
393391

394-
// As of 2026-04-29, pagination is not supported, yet
395-
// assertListPaginationHeaders(response);
392+
assertListPaginationHeaders(response);
396393
assertThat(response.body())
397394
.isNotEmpty()
398395
.allSatisfy(episode -> {

src/test/java/com/uwetrottmann/trakt5/services/UsersTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,7 @@ public void test_watchedMovies() throws IOException {
547547
Response<List<BaseMovie>> response = executeCallWithoutReadingBody(
548548
getTrakt().users().watchedMovies(TestData.USER_SLUG, PAGE_ONE, LIMIT_MAX, null));
549549

550-
// As of 2026-04-29, pagination is not supported, yet
551-
// assertListPaginationHeaders(response);
550+
assertListPaginationHeaders(response);
552551
assertSyncMovies(response.body(), "watched");
553552
}
554553

@@ -575,10 +574,10 @@ public void test_watchedMoviesMin() throws IOException {
575574
@Test
576575
public void test_watchedShows() throws IOException {
577576
Response<List<BaseShow>> response = executeCallWithoutReadingBody(
578-
getTrakt().users().watchedShows(TestData.USER_SLUG, PAGE_ONE, LIMIT_MAX, ExtendedShowsWatched.PROGRESS));
577+
getTrakt().users().watchedShows(TestData.USER_SLUG, PAGE_ONE, LIMIT_MAX,
578+
ExtendedShowsWatched.PROGRESS));
579579

580-
// As of 2026-04-29, pagination is not supported, yet
581-
// assertListPaginationHeaders(response);
580+
assertListPaginationHeaders(response);
582581
assertSyncShows(response.body(), "watched");
583582
}
584583

0 commit comments

Comments
 (0)