SelectableBean implements Multiselectable<T> { @Override public List<SelectableWrapper<T>> getSelectionList() { if (selectionList == null || !isCurrent() || needsRefresh) { List<T> l = getEntityList(this.viewFilterType); selectionList = new ArrayList<SelectableWrapper<T>>(); for (T entity : l) { selectionList.add(new SelectableWrapper<T>(entity)); } needsRefresh = false; } return selectionList; }  TablePreferences getTablePrefs(); TableViewState getTableState(); ViewFilterType[] getViewFilterTypeList(); void deleteSelected(); void selectAll(); void unselectAll(); boolean hasSelected(); @Override List<SelectableWrapper<T>> getSelectionList(); List<SelectableWrapper<T>> getFilteredData(); void setFilteredData(List<SelectableWrapper<T>> filteredData); void refresh(); ViewFilterType getViewFilterType(); void setViewFilterType(ViewFilterType viewFilterType); @SuppressWarnings({ "unchecked", "deprecation" }) void onFilter(FilterEvent event); abstract List<T> getEntityList(ViewFilterType viewFilter); abstract void delete(T entity); abstract boolean isCurrent();  }
@Test public void testGetSelectionList_1() throws Exception { DataFileBrowser fixture = new DataFileBrowser(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); List<SelectableWrapper<DataFile>> result = fixture.getSelectionList(); assertNotNull(result); }
@Test public void testGetSelectionList_2() throws Exception { DataFileBrowser fixture = new DataFileBrowser(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); List<SelectableWrapper<DataFile>> result = fixture.getSelectionList(); assertNotNull(result); }
@Test public void testGetSelectionList_3() throws Exception { DataFileBrowser fixture = new DataFileBrowser(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); List<SelectableWrapper<DataFile>> result = fixture.getSelectionList(); assertNotNull(result); }
@Test public void testGetSelectionList_4() throws Exception { DataFileBrowser fixture = new DataFileBrowser(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); List<SelectableWrapper<DataFile>> result = fixture.getSelectionList(); assertNotNull(result); }