assertj / assertj/assertj-swing
Add support for Danish locale
Open
import from fest-swing
Minor
- Dominant language
- Java
- Stars
- 121
- Forks
- 52
- PR merge metrics
- No merged PRs in 30d
Description
_Issue by **[Morten Breum Mikkelsen](http://jira.codehaus.org/secure/ViewProfile.jspa?name=mortenbreum)** from Sun, 29 Nov 2009 13:36:22 -0600_
_Originally opened as http://jira.codehaus.org/browse/FEST-263_
---
The following code coughs on the exception pasted below:
public static void main(String[] args) {
Robot robot = BasicRobot.robotWithNewAwtHierarchy();
JFrame frame = new JFrame("Fest rules");
frame.getContentPane().add(new JTextField());
frame.setName("theFrame");
frame.pack();
frame.setVisible(true);
FrameFixture ff = WindowFinder.findFrame("theFrame").using(robot);
ff.textBox().enterText("+1234");
}
Exception in thread "main" java.lang.IllegalArgumentException: Invalid key code '61'
at org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:118)
at org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:597)
at org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:582)
at org.fest.swing.core.BasicRobot.type(BasicRobot.java:553)
at org.fest.swing.core.BasicRobot.enterText(BasicRobot.java:536)
at org.fest.swing.driver.JTextComponentDriver.enterText(JTextComponentDriver.java:128)
at org.fest.swing.fixture.JTextComponentFixture.enterText(JTextComponentFixture.java:209)
------------
It's not worse than one can call .pressAndReleaseKeys() instead, but it's less fluent.
I'm not sure if it's related to FEST-232 or not...
---
votes (original issue): 0
watches (original issue): 1
Contributor guide
Assessment
This issue has not been assessed yet.