摘要: junit3和junit4的使用区别如下1.在JUnit3中需要继承TestCase类,但在JUnit4中已经不需要继承TestCase2.在JUnit3中需要覆盖TestCase中的setUp和tearDown方法,其中setUp方法会在测试执行前被调用以完成初始化工作,而tearDown方法则在... 阅读全文
posted @ 2014-12-07 16:16 为自由奋斗 阅读(523) 评论(0) 推荐(0) 编辑