摘要: 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 草原战狼 阅读(21355) 评论(0) 推荐(2) 编辑
草原战狼淘宝小店

No one indebted for others,while many people don't know how to cherish others.

No one indebted for others,while many people don't know how to cherish others.

Don‘t cry because it is over, smile because it happened.

Don‘t try so hard, the best things come when you least expect them to.