It's cool that Google provide GWTMockUtilities to facilitate testing
without launching any web server.
However, it doesn't solve the problem with UiBinder.
For example, I have a ui.xml file and a class:
public class XView extends Composite {
        interface XViewUiBinder extends UiBinder<Widget, SubjectView> {
        }

        private static final XViewUiBinder binder = GWT
                        .create(XViewUiBinder.class);
        @UiField
        HTMLPanel somePanel;

        public SubjectView() {
                initWidget(binder.createAndBindUi(this));
        }
}

When I bring GWTMockUtilities into use, the XView can no longer be
instantiated, because GWT.create will return null (so, I got a null
binder).

Is there any different way to do this? (Test GWT code without
launching a web server)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to