为Struts的测试辩护!
2008-01-05 20:01:49 来源:WEB开发网一下摘自java视线论坛上很激烈的一篇帖子 [http://forum.javaeye.com/viewtopic.php?t=6947&postdays=0&postorder=asc&start=0]
StrutsTestCase for JUnit is an extension of the standard JUnit TestCase class that PRovides facilities for testing code based on the Struts framework. StrutsTestCase provides both a Mock Object approach and a Cactus approach to actually run the Struts ActionServlet, allowing you to test your Struts code with or without a running servlet engine. Because StrutsTestCase uses the ActionServlet controller to test your code, you can test not only the implementation of your Action objects, but also your mappings, form beans, and forwards declarations. And because StrutsTestCase already provides validation methods, it's quick and easy to write unit test cases.
谁说Struts无法测试的?不过这样的测试有点像在打补丁?不是吗?还是不清楚
- ››Struts2配置文件中redirect传递中文参数乱码的解决...
- ››StrutsTestCase 简化开发过程
- ››struts 中一些包的详解
- ››struts1与struts2的区别
- ››struts学习1
- ››struts-2.1.8.1+jquery-1.3.2+spring-framework-2...
- ››Struts优缺点及实施经验总结
- ››Struts优缺点剖析
- ››Struts2中的DMI
- ››Struts2入门介绍1 -- Struts2介绍及运行一个简单...
- ››Struts2 redirectAction转向时默认加pass的问题
- ››Struts2.1.6--想用通配符,不容易
赞助商链接