首页 > TAG信息列表 > SendRes

SpringJUnit4ClassRunner+mockito 进程feign接口进行单元测试

1、引入 jar 1 <dependency> 2 <groupId>org.springframework.boot</groupId> 3 <artifactId>spring-boot-starter-test</artifactId> 4 <scope>test</scope> 5 </dependency>  2、被测试的类 1 @Service 2