Skip to content

Commit

Permalink
Compare entry count to totalElements rather than (page?) size
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjs committed Jan 30, 2019
1 parent d237be9 commit 538ab74
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ public void listTest() {
scheduleSet.add(createDefaultSchedule());
}
PagedResources<ScheduleInfoResource> pagedResources = listSchedules();
assertThat(pagedResources.getMetadata().getSize()).isEqualTo(ENTRY_COUNT);
assertThat(pagedResources.getMetadata().getTotalElements()).isEqualTo(ENTRY_COUNT);
Iterator<ScheduleInfoResource> iterator = pagedResources.getContent().iterator();
for(int i = 0; i < ENTRY_COUNT; i++) {
ScheduleInfoResource resource = iterator.next();
Expand Down

0 comments on commit 538ab74

Please sign in to comment.