@Test public void shouldSetTotalRecordsAndNumberOfPagesWhenDistributionIsEven() { Pagination pagination = new Pagination(2, 10); pagination.setTotalRecords(50); assertThat(pagination.getTotalRecords(), is(50)); assertThat(pagination.getNumberOfPages(), is(5)); }
public void setTotalRecords(Integer totalRecords) { this.totalRecords = totalRecords; setNumberOfPages(); }
Pagination extends RowBounds { public void setTotalRecords(Integer totalRecords) { this.totalRecords = totalRecords; setNumberOfPages(); } }
Pagination extends RowBounds { public void setTotalRecords(Integer totalRecords) { this.totalRecords = totalRecords; setNumberOfPages(); } Pagination(Integer page, int limit); }
Pagination extends RowBounds { public void setTotalRecords(Integer totalRecords) { this.totalRecords = totalRecords; setNumberOfPages(); } Pagination(Integer page, int limit); void setTotalRecords(Integer totalRecords); }
Pagination extends RowBounds { public void setTotalRecords(Integer totalRecords) { this.totalRecords = totalRecords; setNumberOfPages(); } Pagination(Integer page, int limit); void setTotalRecords(Integer totalRecords);  }