On 1 nov, 15:10, Andrey <[email protected]> wrote:
> Hello!
>
> Widgets mocking as
>
> Button button = createMock(Button.class);
>
> doesn't work because of this code:
>
> UIObject.java:140
> private static DebugIdImpl debugIdImpl = GWT.create
> (DebugIdImpl.class);
>
> Why is it there? Why not make a lazy initializer?
> GWT.create throws an Exception and I don't know how to workaround
> this.
Have a look at com.google.gwt.junit.GWTMockUtilities.
(and yes, it's missing from the javadoc:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2988 )
> I don't need this debugIdImpl. I just want to create a mock.
>
> Thanks in advance!
You can also create mocks of the HasHTML, HasText and/or
HasClickHandlers interfaces instead of mocking widgets.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---