使用@RunWith注解,提示报错
@RunWith(SpringJUnit4ClassRunner.class)
报错信息
Class<SpringJUnit4ClassRunner> cannot be resolved to a type
解决方法,添加import,导入jar包
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
使用@RunWith注解,提示报错
@RunWith(SpringJUnit4ClassRunner.class)
报错信息
Class<SpringJUnit4ClassRunner> cannot be resolved to a type
解决方法,添加import,导入jar包
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;