PaginationInfo { public int getMaxDisplayCount() { return maxDisplayCount; } PaginationInfo(Page<?> page, String pathTmpl, String queryTmpl,
            int maxDisplayCount);  PaginationInfo(Page<?> page, String pathTmpl, String queryTmpl,
            String criteriaQuery, boolean disableHtmlEscapeOfCriteriaQuery,
            int maxDisplayCount); static Map<String, Object> createAttributeMap(int pageIndex,
            int size, Sort sort); int getCurrent(); String getPathTmpl(); String getQueryTmpl(); String getCriteriaQuery(); int getMaxDisplayCount(); String getPageUrl(int pageIndex); String getFirstUrl(); String getLastUrl(); String getPreviousUrl(); String getNextUrl(); boolean isFirstPage(); boolean isLastPage(); boolean isCurrent(int page); BeginAndEnd getBeginAndEnd(); static final int DEFAULT_MAX_DISPLAY_COUNT; static final String DEFAULT_PATH_TEMPLATE; static final String DEFAULT_QUERY_TEMPLATE; static final String PAGE_ATTR; static final String SIZE_ATTR; static final String SORT_ORDER_PROPERTY_ATTR; static final String SORT_ORDER_DIRECTION_ATTR; static final String A_ELM; static final String HREF_ATTR; static final String CLASS_ATTR; static final String DEFAULT_OUTER_ELM; static final String DEFAULT_OUTER_CLASS; static final String DEFAULT_INNER_ELM; static final String DEFAULT_INNER_CLASS; static final String DEFAULT_FIRST_LINK_TEXT; static final String DEFAULT_PREVIOUS_LINK_TEXT; static final String DEFAULT_NEXT_LINK_TEXT; static final String DEFAULT_LAST_LINK_TEXT; static final String DEFAULT_DISABLED_HREF; static final String DEFAULT_ACTIVE_CLASS; static final String DEFAULT_DISABLED_CLASS; }
@Test public void testGetMaxDisplayCount() { int maxDisplayCount = 0; PaginationInfo info = new PaginationInfo(page, pathTmpl, queryTmpl, maxDisplayCount); int getMaxCountNum = info.getMaxDisplayCount(); assertThat(getMaxCountNum, is(maxDisplayCount)); }