FEST

JComboBoxFixture's enterText method ignores first character when entering text

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: FEST-Swing 1.1
  • Fix Version/s: FEST-Swing 1.2a1
  • Component/s: Swing
  • Labels:
    None
  • Environment:
    Windows XP, Eclipse 3.4.2
    fest-swing-1.1.jar
    fest-reflect-1.1.jar
    fest-assert-1.0.jar
    fest-util-1.0.jar
  • Testcase included:
    yes
  • Number of attachments :
    2

Description

JComboBoxFixture.enterText(String) is ignoring the first character entered when the first character is a number (also includes some symbols).

The test case attached has two tests that replicate the problem.

Activity

Hide
Steve added a comment -

Work around it to enter text into the text field (via fixture) rather than directly in the combo box fixture:

JTextField textField = (JTextField) fixture.component().getEditor().getEditorComponent();
JTextComponentFixture textFixture = new JTextComponentFixture(robot, textField);
textFixture.enterText("20");

Show
Steve added a comment - Work around it to enter text into the text field (via fixture) rather than directly in the combo box fixture: JTextField textField = (JTextField) fixture.component().getEditor().getEditorComponent(); JTextComponentFixture textFixture = new JTextComponentFixture(robot, textField); textFixture.enterText("20");
Hide
Alex Ruiz added a comment -

Hi Steve,

The bug is fixed. I'd like to add you to the list of contributors. If you agree, please send me your full name and optionally, a link to your blog or personal web page to alex.ruiz.05 at gmail.com

Thanks a lot for your help!
-Alex

Show
Alex Ruiz added a comment - Hi Steve, The bug is fixed. I'd like to add you to the list of contributors. If you agree, please send me your full name and optionally, a link to your blog or personal web page to alex.ruiz.05 at gmail.com Thanks a lot for your help! -Alex
Hide
Steve added a comment -

Good job Alex. I am happy to be added to the list of contributors, my full name is Stephen Neal. Keep up the good work.

Show
Steve added a comment - Good job Alex. I am happy to be added to the list of contributors, my full name is Stephen Neal. Keep up the good work.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: