Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
Reset PageableTest to be the same as in main
  • Loading branch information
FanJups committed Oct 25, 2023
commit 7a23d382a838ca3fd004ef34edb252e1c7d6239f
6 changes: 3 additions & 3 deletions api/src/test/java/jakarta/data/page/PageableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ void shouldCreatePage() {
@DisplayName("Should be displayable as String with toString")
void shouldPageableDisplayAsString() {
assertSoftly(softly -> softly.assertThat(Pageable.ofSize(60).toString())
.isEqualTo("Pageable{page=1, size=60}"));
.isEqualTo("Pageable{page=1, size=60}"));

assertSoftly(softly -> softly.assertThat(Pageable.ofSize(80).sortBy(Sort.desc("yearBorn"), Sort.asc("monthBorn"),
Sort.asc("id")).toString())
.isEqualTo("Pageable{page=1, size=80, yearBorn DESC, monthBorn ASC, id ASC}"));
.isEqualTo("Pageable{page=1, size=80, yearBorn DESC, monthBorn ASC, id ASC}"));
}

@Test
Expand Down Expand Up @@ -202,4 +202,4 @@ void shouldReplaceSorts() {
softly.assertThat(p2.size()).isEqualTo(55);
});
}
}
}