spring cloud项目,想进行测试,依赖已添加了
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
项目中的libraries中已有junit 4.12.jar包和spring-boot-starter-test-1.3.8.RELEASE.jar包和spring-test-4.2.8RELEASE.jar包。
但是进行测试的,@RunWith()可以使用,但是无论是SpringJUnit4ClassRunner.class还是SpringRunner.class都无法import这两个包。请问怎么解决