struts2 Action 测试
以前从来没有测试过Action,今天在struts的doc看到struts提供了一个junit插件,可以对action进行单元测试,这个插件是从struts 2.1.1开始有的,下面是一个小例子。
首先要搭建环境,struts2的jar包就说了,还要引入测试的jar包如下图
[img]http://dl.iteye.com/upload/attachment/0074/7326/55de...
原创
2012-10-09 11:11:32 ·
178 阅读 ·
0 评论