<dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <!-- 作用域范围为test --> <scope>test</scope> </dependency>
将<scope>test</scope>注释掉即可
如下:
<dependency>
<groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> </dependency>
原因:scope的作用范围问题,注释掉即可
最后
以上就是成就戒指最近收集整理的关于Test类添加后 报错:程序包org.junit不存在解决的全部内容,更多相关Test类添加后内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复