On Wed, Sep 17, 2008 at 5:50 PM, Kapil Sachdeva <[EMAIL PROTECTED]> wrote:
> So going by this theory does it do the conversion of junit libraries since
> they are needed. ?

GWT comes with a JUnit implementation that suits the needs spec'd out
by the GWT developers.  I'm not sure what that actually means, but I
do know the "conversion" was done manually--whatever source was needed
was written by hand.  There's no magic automatic conversion happening
in the background.

> Since mocking is such an essential part of unit testing
> could some one suggest how one should include it in GWT. My GWT Classes
> incorporate both pure java classes and overlays on existing javascript
> libraries.

You probably need to look into writing a generator.  Ray Cromwell has
an excellent primer on generators in his blog at
http://timepedia.blogspot.com/.  I think the relevant entries are
called "Generators" and "Generators part deux", or something like
that.  The articles are quite old by now.  You can also search the
history of this list and the history of the
Google-Web-Toolkit-Contributors list for discussions on generators or
reflection because the answer to just about every reflection question
is "use a generator".  Finally, the GWT source includes several
generator implementations--there's at least the RPC generator, the
i18n generator, and probably several others.

Ian

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