SnapshotSelectorCombo { JSpinner getSpinner() { return snapshotSelector.getSpinner(); } SnapshotSelectorCombo();   SnapshotSelectorCombo(final SnapshotSelectorComboModel model); void addSliderChangeListener(ChangeListener l); boolean isAdjusting(); long getSnapshotId(); void setSnapshotId(long id); final void setModel(SnapshotSelectorComboModel model); void setComboBoxEnabled(boolean enabled); void setComboBoxSelectedIndex(int index); void addComboBoxActionListener(ActionListener l); static JComponent createComponent(SnapshotSelectorCombo combo, boolean showSliderInfo);  }
@Test public void spinnerEditor() throws ParseException { final JSpinner spinner = selectorCombo.getSpinner(); assertTrue(spinner != null); final JComponent component = spinner.getEditor(); assertTrue(component instanceof JSpinner.ListEditor); final JSpinner.ListEditor listEditor = (JSpinner.ListEditor) component; final JFormattedTextField textField = listEditor.getTextField(); assertTrue(textField.isEditable()); textField.setValue(2); assertEquals(2L, spinner.getValue()); }