摘要: 在项目测试中,我们对于发现的问题通常需要回归测试,而通常可能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 阅读全文
posted @ 2012-05-18 20:31 Wbang Ting 阅读(330) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2012-05-16 21:30 Wbang Ting 阅读(2341) 评论(0) 推荐(0)
摘要: 坚持一个梦想,坚持一个自己,努力找到一颗平静的心,来证明自己! 阅读全文
posted @ 2011-11-01 10:05 Wbang Ting 阅读(169) 评论(0) 推荐(0)