struts2单元测试Validatioin.xml
导读: 最近使用了struts2的校验框架,用于在服务器端对用户提交的数据进行校验,遇到点问题。 问题是:测试类OperatorActionTest 始终检查不到regId和password字段为空(测试时两个属性都赋值null)。 以下是action类,validation.xml文件,以及测试类: action类: public class OperatorAction e
转载
2008-03-03 17:44:00 ·
526 阅读 ·
1 评论