JobTreeTableBean implements Serializable { public void setRefreshTimeSeconds(String refreshTimeSeconds) { if (NumberUtils.isCreatable(refreshTimeSeconds)) { int num = Integer.parseInt(refreshTimeSeconds); if (num >= MIN_REFRESH) { refreshInterval = num; this.refreshTimeSeconds = refreshTimeSeconds; } else { messages.warn("Refresh Interval must be at least " + MIN_REFRESH + " seconds."); } } else if (StringUtils.isEmpty(refreshTimeSeconds)) { refreshInterval = 0; this.refreshTimeSeconds = refreshTimeSeconds; } else { messages.warn("Refresh Interval must be an interger with a minimum value of " + MIN_REFRESH + " seconds."); } }  @PostConstruct void init(); TablePreferences getTablePrefs(); TableViewState getTableState(); void deleteJobInstance(JobNodeBean bean); boolean isRefreshEnabled(); JobNodeBean getCurrentJobInstance(); void setCurrentJobInstance(JobNodeBean currentJobInstance); void setCurrentJobInstanceForUser(JobNodeBean currentJobInstance); void setCurrentJobInstanceForTPS(JobNodeBean currentJobInstance); void keysChanged(); List<String> getAllTpsKeys(); List<String> getSelectedTpsKeys(); void setSelectedTpsKeys(List<String> keys); TrackingCartesianChartModel getChartModel(); TrackingCartesianChartModel getTpsChartModel(); int getRefreshInterval(); String getRefreshTimeSeconds(); void setRefreshTimeSeconds(String refreshTimeSeconds); boolean isFilterFinished(); void setFilterFinished(boolean filterFinished); void refreshData(); TreeNode getRootNode(); void onNodeExpand(NodeExpandEvent event); void onNodeCollapse(NodeCollapseEvent event); boolean canControlJob(JobNodeBean node);  }
@Test public void testSetRefreshTimeSeconds_1() throws Exception { JobQueueManager fixture = new JobQueueManager(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); String refreshTimeSeconds = ""; fixture.setRefreshTimeSeconds(refreshTimeSeconds); }
@Test public void testSetRefreshTimeSeconds_2() throws Exception { JobQueueManager fixture = new JobQueueManager(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); String refreshTimeSeconds = ""; fixture.setRefreshTimeSeconds(refreshTimeSeconds); }
@Test public void testSetRefreshTimeSeconds_3() throws Exception { JobQueueManager fixture = new JobQueueManager(); fixture.tableState = new TableViewState(); fixture.tablePrefs = new TablePreferences(new LinkedList()); String refreshTimeSeconds = ""; fixture.setRefreshTimeSeconds(refreshTimeSeconds); }