myEclipse下ssh整合使用JUnit4测试为什么报错?

long085 2017-11-11 02:48:38
Description Resource Path Location Type
Class<SpringJUnit4ClassRunner> cannot be resolved to a type TestApp.java /test/src/com/team3/test line 10 Java Problem
ContextConfiguration cannot be resolved to a type TestApp.java /test/src/com/team3/test line 11 Java Problem
SpringJUnit4ClassRunner cannot be resolved to a type TestApp.java /test/src/com/team3/test line 10 Java Problem
The attribute locations is undefined for the annotation type ContextConfiguration TestApp.java /test/src/com/team3/test line 11 Java Problem
JUnit4的jar包已经自动导入



根据视频敲的代码,把视频中的源码拿过来就可以运行的。请问是什么原因?谢谢
...全文
189 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
long085 2017-11-12
  • 打赏
  • 举报
回复
经过比对导入的jar包,实属未导入spring-test-3.2.0.RELEASE.jar
long085 2017-11-12
  • 打赏
  • 举报
回复
自动导入过JUnit4 Jar包了啊
李德胜1995 2017-11-11
  • 打赏
  • 举报
回复
没有导入spring-test把????

51,410

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧