我是靠谱客的博主 大力小虾米,这篇文章主要介绍The import org.junit.Test conflicts with a type defined in the same file报错,现在分享给大家,希望可以做个参考。
情景:项目引入Junit后,进行单元测试,莫名其妙报了个这样的错误
The import org.junit.Test conflicts with a type defined in the same file
-
原因1:常规原因,导入的jar包相冲突
-
原因2:写junit测试的Java类名为Test.java 或者 包名也是Test,仍然会报这个错误。
最后
以上就是大力小虾米最近收集整理的关于The import org.junit.Test conflicts with a type defined in the same file报错的全部内容,更多相关The内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复