RepeaterUtil implements IRepeaterUtil { @Override public String scrollToBottom(String markupId) { return String.format("QuickView.scrollToBottom('%s');", markupId); } RepeaterUtil(Application application); static RepeaterUtil get(); String prepend(String tag, String markupId, String parentMarkupId,String firstChildId ,String markId); @Override String prepend(MarkupContainer component, MarkupContainer parent,Component start,Component end); @Override String append(String tag, String markupId, String parentMarkupId,String startId ,String endId); @Override String append(MarkupContainer c, MarkupContainer parent,Component start,Component end); @Override ComponentTag getComponentTag(Component c); @Override String removeItem(String markupId,String parentId); @Override String removeItem(Component component,Component parent); @Override int safeLongToInt(long value); @Override final void parentNotSuitable(IQuickView quickView); @Override final void outPutMarkupIdNotTrue(IQuickView quickView); @Override final void reuseStategyNotSupportedForItemsNavigation(IQuickView quickView); @Override String scrollToBottom(String markupId); @Override String scrollToBottom(IQuickView quickView); @Override String scrollToTop(String markupId); @Override String scrollToTop(IQuickView quickView); @Override String scrollTo(IQuickView quickView, int height); @Override String scrollTo(String markupId, int height); @Override String isComponentScrollBarAtBottom(MarkupContainer component); @Override String isPageScrollBarAtBottom(); @Override String showPageScrollBar();  }
@Test(groups = {"utilTests"}) public void scrollToBottom() { final String repeaterMarkupId = "quick"; final String expected = "QuickView.scrollToBottom('quick');"; final String actual = RepeaterUtil.get().scrollToBottom(repeaterMarkupId); Assert.assertEquals(actual.trim(), expected.trim()); }