Hi,

we've built our GWT app using the technique desribe here:

http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-reloaded/

The application context is loaded by referencing it in web.xml, the
servlets have their dependecies injected using a common base class.

When running in integration test mode using a GWTTestCase, we
substitute the Spring context with a test context that provides stubs
for all beans that would otherwise require some backend access:

if
(servletContext.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE)
== null) {
  /* Load test context */
} else {
  context =
WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext);
}

This worked very well until GWT 2.1. Has anyone had the same problem
and found a good solution yet? All we've come up is some hacks to find
out whether we're running in integration test mode yet.

Best regards,
Matt

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