网上找了大半天。好多都是讲Struts的Action 。我继承StrutsSpringTestCase
request.setParameter("xx", "xx");的时候,会出空指针异常。
另外我的struts.xml也不再默认的位置。。求方案。。
request.setParameter("xx", "xx");的时候,会出空指针异常。
另外我的struts.xml也不再默认的位置。。求方案。。
调试欢乐多
测试的话,可以用Junit
测试struts的action用JUnit类,在MyEclipse里面导入JUnit类就好了
比如继承StrutsSpringTestCase
spring junit测试以及Mock对象的使用。查了些资料还是没弄出结果