Open GoogleCodeExporter opened 9 years ago
You didn't follow the wiki page :
http://code.google.com/p/gwt-test-utils/wiki/HowToUseWithSpring
1) Extends GwtSpringTest instead of GwtTest
2) Don't use @RunWith(SpringJUnit4ClassRunner.class), GwtSpringTest is run with
a custom TestRunner especially design to make spring test work with
gwt-test-utils. The @RunWith annotation is set in GwtSpringTest
3) In @ContextConfiguration, you have to set the gwt-test-utils custom
ContextLoader : GwtTestContextLoader
So, you should have a declaration like this :
@ContextConfiguration(locations = {"classpath:applicationContext-test.xml"},
loader = GwtTestContextLoader.class)
public class formsGwtTest extends GwtSpringTest implements BeanFactoryAware {
Original comment by gael.laz...@gmail.com
on 24 Apr 2012 at 3:02
Original issue reported on code.google.com by
Geoffrey...@gmail.com
on 24 Apr 2012 at 2:53