问题:添加Junit的@Test后报错"Test cannot be resolved to a type"
原因:是项目没有导入 JUnit 库
解决办法: 项目右键 -> Build Path -> Configure Build Path -> Libraries -> Add Library -> JUnit -> next -> finish OK
问题:添加Junit的@Test后报错"Test cannot be resolved to a type"
原因:是项目没有导入 JUnit 库
解决办法: 项目右键 -> Build Path -> Configure Build Path -> Libraries -> Add Library -> JUnit -> next -> finish OK
>