Monday, January 7, 2013

How to test my Spring service from GWT ui using GWTTestCase?

I have configured a GWT project using Spring MVC (for RPC calling and server side dependency injection). I have tested gwt-test-utils lib, it was working with Spring and Spring MVC nice but my GWT ui is complicated and it could not parse my *.ui.xml files. I am going to write GWTTestCase so that i can call my RPC method inside GWTTestCase but i have several problem:

  • I can not set Spring MVC servlet dispatcher contextConfigLocation param for test.
  • I do not know how can load spring context in my GWTTestCase class. Something like this i guess:

    @ContextConfiguration(locations = {"classpath:applicationContext.xml" , "classpath:servlet-mvc.xml"})

Are there any way to solve these problems or an alternative way?

--
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/-/2CP4mPl_CF4J.
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