Sunday, August 28, 2011

Re: [how to] I want to invoke Generator.generate

AFAIK, GWT tests themselves use GWTTestCase to actually test the generated code (rather than the generator). For generators built around a "model" though (editor, requestfactory, PlaceHistoryMapper), some of them use a "synthetic" TypeOracle and a special TreeLogger; the only test the "model" part (not the "generator" one) so they don't need a ResourceOracle or GeneratorContext.
In other words, you'd better look in the SVN repo (in trunk/user/test) how GWT tests its own generators (focusing on the most recent ones)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/q4SiDimfnMoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment