uispec4j

UISpec4J: Returning a Trigger from a Combobox selection?

This question is for the UISpec4J testing framework, for testing Java GUIs... I'm trying to test an error message pop-up window (modal) that results from making a selection from a ComboBox, but I'm not sure how to return a Trigger object from the select action. Here's a snippet: WindowInterceptor .init(window.getComboBox("ComboBox...

Manually Dispatching a DocumentEvent for testing UI element validation code

Hi. I'm testing a Swing GUI application using the UISpec4J testing framework. I'm testing validation code on a JTextField, but the framework does not support focus-change events, as it runs the application in a headless fashion. The text field has a DocumentEvent attached to it that activates the validation code. I'm trying to figure o...