Skip to content

Commit

Permalink
Follow-up: also check that page and item count are positive
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed Nov 7, 2024
1 parent 7183f84 commit 17be4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/uwetrottmann/trakt5/services/UsersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public void test_notes() throws IOException {
Response<List<NoteResponse>> response = executeCallWithoutReadingBody(
getTrakt().users().notes(UserSlug.ME, "all", null, null, Extended.FULL));

assertThat(TraktV2.getPageCount(response)).isNotNull();
assertThat(TraktV2.getItemCount(response)).isNotNull();
assertThat(TraktV2.getPageCount(response)).isNotNull().isPositive();
assertThat(TraktV2.getItemCount(response)).isNotNull().isPositive();

List<NoteResponse> allNotes = response.body();
assertThat(allNotes).isNotEmpty();
Expand Down

0 comments on commit 17be4a2

Please sign in to comment.