import com.newfiber.business.NewfiberBusinessApplication; import com.newfiber.common.redis.service.RedisService; import com.newfiber.system.api.RemoteSmsService; import javax.annotation.Resource; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; /** * @author : X.K * @since : 2023/3/2 下午4:09 */ //@Slf4j @SpringBootTest(classes = NewfiberBusinessApplication.class, properties = {"spring.main.allow-bean-definition-overriding=true"}) @RunWith(SpringRunner.class) public class ServiceTest { @Resource private RemoteSmsService remoteSmsService; @Resource private RedisService redisService; }