Hello

I have some problem during create TestNG for my code. I have control
class in my MVC project GWT, and in one method I have object
com.google.gwt.user.client.Timer. During run the unit test I have some
exception

 java.lang.UnsupportedOperationException: ERROR: GWT.create() is only
usable in client code!  It cannot be called, for example, from server
code.  If you are running a unit test, check that your test case
extends GWTTestCase and that GWT.create() is not called from within an
initializer or constructor.

My question is how I can test my method with Timer object or Random
object. How create mock object for this classes. Mayby someone know
injec object to class by guice.

I dont want to use GWTTestCase but TestNG

--~--~---------~--~----~------------~-------~--~----~
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