AbstractListPresenter implements RefreshMenuBuilder.SupportsRefresh { public void refreshGrid() { if (getListView().getListGrid() != null) { getListView().getListGrid().setVisibleRangeAndClearData(getListView().getListGrid().getVisibleRange(), true); } } AbstractListPresenter(); abstract void getData(Range visibleRange); void updateDataOnCallback(PageResponse response); void updateDataOnCallback(List<T> instanceSummaries,
                                     int startRange,
                                     int totalRowCount,
                                     boolean isExact); void addDataDisplay(final HasData<T> display); AsyncDataProvider<T> getDataProvider(); @Override void onRefresh(); void refreshGrid(); void onDeselectAllItemsEvent(@Observes DeselectAllItemsEvent event); void deselectAllItems();  }
@Test public void testRefreshGrid() { Range range = new Range(0, 5); when(extendedPagedTable.getVisibleRange()).thenReturn(range); testListPresenter.refreshGrid(); verify(extendedPagedTable).setVisibleRangeAndClearData(range, true); }