I want to test JTextField.paste(), however it is not working.
I created a JUnit test with the following code:
JTextField textfield = new JTextField();
textfield.paste();
assertEquals("my text", textfield.getText())
however, textfield.getText() is empty (I copied "my text" to the clipboard, before)
Can you help me?