@@ -0,0 +1,1364 @@
+package org.wms.view.orderedit;%0A%0Aimport static org.junit.Assert.assertFalse;%0Aimport static org.junit.Assert.assertTrue;%0A%0Aimport java.awt.event.MouseEvent;%0A%0Aimport javax.swing.JComboBox;%0Aimport javax.swing.event.ChangeEvent;%0A%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Apublic class ComboBoxCellEditorCustomTest %7B%0A%0A%09private static ComboBoxCellEditorCustom cmbCellEditor;%0A%09%0A%09@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%09cmbCellEditor = new ComboBoxCellEditorCustom(new JComboBox());%0A%09%7D%0A%0A%09/**%0A%09 * Test combobox should be not editable%0A%09 * after user single click on table cell%0A%09 */%0A%09@Test%0A%09public void testIsCellEditableEventObjectSingleClick() %7B%0A%09%09MouseEvent e = new MouseEvent(new JComboBox%3C%3E(), 0, 0l, 0, 0, 0, 0, 0, 1, false, 0);%0A%09%09assertFalse(cmbCellEditor.isCellEditable(e));%0A%09%7D%0A%09%0A%09/**%0A%09 * Test combobox should be editable%0A%09 * after user double click on table cell%0A%09 */%0A%09@Test%0A%09public void testIsCellEditableEventObjectDoubleClick() %7B%0A%09%09MouseEvent e = new MouseEvent(new JComboBox%3C%3E(), 0, 0l, 0, 0, 0, 0, 0, 2, false, 0);%0A%09%09assertTrue(cmbCellEditor.isCellEditable(e));%0A%09%7D%0A%09%0A%09/**%0A%09 * Test combobox should be not editable%0A%09 * after user other event%0A%09 */%0A%09@Test%0A%09public void testIsCellEditableEventObjectOtherEvent() %7B%0A%09%09ChangeEvent e = new ChangeEvent(new JComboBox%3C%3E());%0A%09%09assertFalse(cmbCellEditor.isCellEditable(e));%0A%09%7D%0A%0A%7D%0A

Test ComboBoxCellEditorCustom class