问题遇到的现象和发生背景
明明引入了Junit的依赖,为啥我写测试代码的时候用到的@Test注解爆红了。
用代码块功能插入代码,请勿粘贴截图
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
运行结果及报错内容
Cannot resolve symbol 'Test'