ECLIPSE Questions and Answers

Explain how to fire a key event in the test code to make the program act as if a user pressed a key?

To fire a key event in test code to make the program act as if a user pressed a key. You need to follow two ways.

  • notifyListeners(…) or
  • post(Event)