java基础之junit测试框架

1.导入junit包,

2.测试方法格式

public void test_*(){}

继承  TestCase  包(keep the bar green to keep the code clean)

单元测试不是为了证明你是对的,而是证明你没有错误。

http://junit.org/

原文地址:https://www.cnblogs.com/a1280055207/p/3160095.html