*
* @param harness the test harness (<code>null</code> not permitted).
*/
public void test(TestHarness harness)
{
BasicComboBoxEditor e = new BasicComboBoxEditor();
JTextField tf = (JTextField) e.getEditorComponent();
ActionListener[] listeners = tf.getActionListeners();
harness.check(listeners.length, 0);
e.addActionListener(this);
listeners = tf.getActionListeners();
harness.check(listeners.length, 1);
harness.check(listeners[0], this);
e.removeActionListener(this);
listeners = tf.getActionListeners();
harness.check(listeners.length, 0);
// remove a listener that isn't there
e.removeActionListener(this);
listeners = tf.getActionListeners();
harness.check(listeners.length, 0);
// try null
e.removeActionListener(null);
listeners = tf.getActionListeners();
harness.check(listeners.length, 0);
}