Thursday, June 2, 2011

GWT Test Case errors because of Google Guice injection problems

Hi,
I'm writing a GWT application with Guice on the server side and GIN on the client side. Everything works fine when I run the Devmode. Problems start, when I try to run GWT Test Cases.

When I run the test cases using the Eclipse "Run JUnit", everything is initiated properly. The problems start either with running the EMMA (Code Coverage plugin), or with test task in Ant (generated from webAppCreator tool). In both cases it just times out. As EMMA gives no hint what went wrong, the Ant task generates report. The report is pasted here: http://pastie.org/2012107. I suppose the reasons for the error may be the same.

If I understand correctly, the guice-servlet does not initialize the modules for the test in the same way as in the devmode.

Has anyone came across the problem?

Best regards,
Mateusz

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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