Hi folks, I'm using a mechanism to pass bootstrapping information embedded in the host page (which is a servlet/jsp combination) from the server to the client. The bootstrapping information contains vital information which is required during client start up which saves one client/server round trip and therefore speeds up application start up.
I'm using Gson to serialize the bootstrapping information and inject it directly into a <script> tag in the host page. The information is accessed on the client using JS Overlay Types [1]. Because passing long values from JS to Java isn't supported by GWT I'm using a custom JsonSerializer which turns all longs/Longs into Strings. All of this works fine but it is a little fragile. Therefore I'd love to verify the correct behavior in an integration test which covers both the server and the client side components. This is where I ran into trouble: Gson (used in the server side component) isn't GWT compatible and JS Overlay Types obviously aren't Java compatible. My question is: Is it possible to write a GWTTestCase which runs some parts of the code as pure Java (ie. on the integrated server)? If not, do you have any other recommendations on how to test this? Thanks a lot! Michael [1] http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html -- 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.
