Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
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 :
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.
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");