摘要: Junit单元测试 测试的分类: 黑盒测试 白盒测试 定义一个测试类 测试类名 被测试的类名 + Test 包名:xxx.xx.xx.test cn.itcast.test 定义一个测试方法:可以独立运行 方法名:test测试的方法名 testAdd 返回值 :void 参数列表 :空参数 给方法加 阅读全文