- well documented
...because that clicks the button without firing any listeners. Instead, within your GWTTestCase-derived unit test, put a method like this:
private native void fireClickListeners( FocusWidget w )
It looks funny I know. Make sure you:
means nothing to the Java compiler
You can then call this method just as you would a normal method:
fireClickListeners( myButton );
Hope that helps somebody. I'm using this in the upcoming release of Metawidget.