FEST

Entering a "-" into a table cell fails on 1.2a2

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: FEST-Swing 1.2a2
  • Fix Version/s: FEST-Swing 1.2a3
  • Component/s: Swing
  • Labels:
    None
  • Environment:
    Vista, 1.2a2
  • Number of attachments :
    0

Description

entering a hyphen into a cell breaks:

window.table("table").cell(row(99).column(88)).enterValue("-");

java.lang.IllegalArgumentException: Invalid key code '47'
at org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:117)
at org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:590)
at org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:575)
at org.fest.swing.core.BasicRobot.type(BasicRobot.java:546)
at org.fest.swing.core.BasicRobot.enterText(BasicRobot.java:529)
at org.fest.swing.driver.JTextComponentDriver.enterText(JTextComponentDriver.java:120)
at org.fest.swing.driver.JTextComponentDriver.replaceText(JTextComponentDriver.java:95)
at org.fest.swing.driver.JTableTextComponentEditorCellWriter.enterValue(JTableTextComponentEditorCellWriter.java:52)
at org.fest.swing.driver.BasicJTableCellWriter.enterValue(BasicJTableCellWriter.java:65)
at org.fest.swing.driver.JTableDriver.enterValueInCell(JTableDriver.java:549)
at org.fest.swing.fixture.JTableCellFixture.enterValue(JTableCellFixture.java:274)

Activity

Hide
Alex Ruiz added a comment -

Hi Michael,

Jan Zuchhold reported a bug when entering text in German, which may be related to this issue, The bug that Jan reported is related KeyStrokeMappingProvider_de. Can you confirm the problem you found is related to this class?

Many thanks!
-Alex

Show
Alex Ruiz added a comment - Hi Michael, Jan Zuchhold reported a bug when entering text in German, which may be related to this issue, The bug that Jan reported is related KeyStrokeMappingProvider_de. Can you confirm the problem you found is related to this class? Many thanks! -Alex
Hide
Alex Ruiz added a comment -

Hi Michael, I couldn't reproduce it. I'm attaching the test case. I think in your case, this bug might be related to a bug in the German keyboard mapping. I filed FEST-175 to take care of that bug.

Show
Alex Ruiz added a comment - Hi Michael, I couldn't reproduce it. I'm attaching the test case. I think in your case, this bug might be related to a bug in the German keyboard mapping. I filed FEST-175 to take care of that bug.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: