摘要:
Junit是一个可编写重复测试的简单框架,是基于Xunit架构的单元测试框架的实例。Junit4最大的改进是大量使用注解(元数据),很多实际执行过程都在Junit的后台做完了,而且写test case 的类不需要继承TestCase,只需要在所要做test case的方法前加@Test 注解即可。如:1 import static org.junit.Assert.*;2 2 public class TestCaculatorClass {3 3 @Test4 4 public void test() throws IOException, RuntimeExceptio... 阅读全文
posted @ 2014-01-22 20:40
草原战狼
阅读(21391)
评论(0)
推荐(2)

浙公网安备 33010602011771号