public void testDefaultEditor_LayoutSizes() {
DefaultEditor defaultEditor = (DefaultEditor) spinner.createEditor(abstractModel);
spinner.setEditor(defaultEditor);
assertEquals(defaultEditor.minimumLayoutSize(spinner), Utilities.addInsets(
defaultEditor.getTextField().getMinimumSize(), spinner.getInsets()));
assertEquals(defaultEditor.preferredLayoutSize(spinner), Utilities.addInsets(
defaultEditor.getTextField().getPreferredSize(), spinner.getInsets()));
}
public void testNumberEditor_NumberEditor() {
spinner.getModel().setValue(new Integer(5));