CrescentSearchRequestWrapper { public int getStartOffSet() { return ((getPageNum() - 1) * getHitsForPage()); } CrescentSearchRequestWrapper(SearchRequest searchRequest); String getKeyword(); String getCollectionName(); int getDefaultHitsPage(); int getPageNum(); int getStartOffSet(); int getHitsForPage(); Sort getSort(); Query getQuery(); Filter getFilter(); List<CrescentCollectionField> getTargetSearchFields(); List<CrescentCollectionField> getIndexedFields(); String getUserIp(); String getUserId(); String getPcId();  }
@Test public void getStartOffset() { CrescentSearchRequestWrapper searchRequestWrapper = new CrescentSearchRequestWrapper(searchRequest); Assert.assertEquals(0, searchRequestWrapper.getStartOffSet()); searchRequest.setPageNum("10"); Assert.assertEquals(180, searchRequestWrapper.getStartOffSet()); }