@Test public void shouldCalculatePageCorrect() throws Exception { assertEquals(expectedPage, pagedResult.getPage()); }
public int getPage() { return pageSize > 0 ? (startRow / pageSize) + 1 : UNKNOWN; }
PagedResult implements Serializable { public int getPage() { return pageSize > 0 ? (startRow / pageSize) + 1 : UNKNOWN; } }
PagedResult implements Serializable { public int getPage() { return pageSize > 0 ? (startRow / pageSize) + 1 : UNKNOWN; } PagedResult(List<T> values, int startRow, int rowCount, int pageSize);  PagedResult(List<T> values, int startRow, int rowCount, int pageSize, int totalRows, int additionalResultRows); }
PagedResult implements Serializable { public int getPage() { return pageSize > 0 ? (startRow / pageSize) + 1 : UNKNOWN; } PagedResult(List<T> values, int startRow, int rowCount, int pageSize);  PagedResult(List<T> values, int startRow, int rowCount, int pageSize, int totalRows, int additionalResultRows); List<T> getValues(); boolean isTotalCounted(); boolean isAddionalResultCounted(); boolean isPagedResult(); int getStartRow(); int getEndRow(); int getRowCount(); int getTotalRows(); int getAdditionalResultRows(); int getPageSize(); int getPage(); int getTotalPages(); int getAdditionalResultPages(); }
PagedResult implements Serializable { public int getPage() { return pageSize > 0 ? (startRow / pageSize) + 1 : UNKNOWN; } PagedResult(List<T> values, int startRow, int rowCount, int pageSize);  PagedResult(List<T> values, int startRow, int rowCount, int pageSize, int totalRows, int additionalResultRows); List<T> getValues(); boolean isTotalCounted(); boolean isAddionalResultCounted(); boolean isPagedResult(); int getStartRow(); int getEndRow(); int getRowCount(); int getTotalRows(); int getAdditionalResultRows(); int getPageSize(); int getPage(); int getTotalPages(); int getAdditionalResultPages(); static final int UNKNOWN; }