05 2012 档案
摘要:在项目测试中,我们对于发现的问题通常需要回归测试,而通常可能TestCase中包含多个test方法,为了避免所有的Test全部测试,特别指定某个或某几个方法,在Junit中可以这样调用: 1 //Object[i][0]:TestCase类 Object[i][1]:TestCase中的某个方法名称 2 public ArrayList<TestResult> ExecuteSpecificMethodExecute(Object[][] input) 3 { 4 ArrayList<TestResult> array = new ArrayList<TestRe
阅读全文
摘要:1.web.xml的配置自定义的异常类1 <error-page>2 <exception-type>com.service.Exception.MyException</exception-type>3 <location>/my_exception.jsp</location>4 </error-page>定义HTTP消息状态码<error-page> <error-code>404</error-code> <location>/404.html</locatio
阅读全文

浙公网安备 33010602011771号