package cn.cslg.pas.service; import cn.cslg.pas.common.vo.StarPatentVO; import cn.cslg.pas.service.importPatent.ImportSinglePatentService; import lombok.experimental.Accessors; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @SpringBootTest @RunWith(SpringRunner.class) public class ImportSinglePatentServiceTests { @Autowired private ImportSinglePatentService importSinglePatentService; @Test public void getPatentFromWeb(){ StarPatentVO starPatentVO = importSinglePatentService.getPatentFromWeb("CN200820185104.4"); System.out.println(starPatentVO); } }