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

82 views
Skip to first unread message

Saeed Zarinfam

unread,
Jan 7, 2013, 3:29:13 AM1/7/13
to google-we...@googlegroups.com

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?

Reply all
Reply to author
Forward
0 new messages