1,导入junit的jar包 选中工程文件,右键,属性properties 选中添加库。 选中junit 选中对应的测试版本包
工程文件里已经有了junit的jar包 添加@test标签 开始测试 绿色进度条表示测试通过。