struts2 junit plugin
从 struts2官网 下载的struts2-junit-plugin-2.1.6.jar ,并不能完成 http://cwiki.apache.org/WW/testing-actions.html 一文中所描述的功能。看了一下struts2-2.1.6的源码,不具备executeAction、getActionMapping等方法。
可能是wiki和源码没有同步更新吧。
这里提供一个可以支持getActionMapping等方法的strtus2-junit-plugin。
jar包下载: struts2-junit-plugin-2.1.6.jar
源码(maven工程)下载:struts2-junit-plugin-source.zip
这样就可以用wiki中的方法来进行单元测试了。如果测试类继承StrutsSpringTestCase ,还可以直接用工程中的spring配置文件,非常方便。
原创文章如转载,请注明:转载自CODIGG [ http://www.codigg.com/ ]
本文链接地址:http://www.codigg.com/2009/08/struts2-junit-plugin-spring/


一月 14th, 2012 at 13:06
Heya i’m for the first time here. I found this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you aided me.
[回复]
一月 25th, 2012 at 06:52
˙ţC
[回复]
二月 2nd, 2012 at 03:19
It is hard to find educated individuals for this niche, but you seem like you fully understand what exactly you’re preaching about! Thanks a bunch
[回复]
二月 2nd, 2012 at 09:46
Fantastic article admin thank you. I identified what i used to be searching for right here. I’ll review overall of posts within this time of day
[回复]
二月 2nd, 2012 at 23:05
Great one particular weblog proprietor accomplishment website put up great sharings in this blog constantly have entertaining
[回复]
二月 3rd, 2012 at 01:40
Rattling excellent visual appeal on this website , I’d rate it 10 10.
[回复]
二月 3rd, 2012 at 02:49
What’s up vso convertxtodvd 4 key really good evaluation vso convertxtodvd download for struts2 junit plugin – CODIGG
[回复]
二月 3rd, 2012 at 11:53
You made some clear points there. I did a search on the topic and found most people will consent with your blog.
[回复]
二月 4th, 2012 at 08:56
Greetings thanks for fantastic article i used to be seeking for this problem previous a couple of nights. I will search for following precious posts. Have enjoyable admin.
[回复]
二月 5th, 2012 at 03:26
Greetings! I really wishes to give a enormous “thumbs up”. for your wonderful data which you have on this website. I will be returning to your internet site to read more before long.
[回复]