| | |
| | | import java.util.Scanner; |
| | | |
| | | // |
| | | @RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 |
| | | @ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | @WebAppConfiguration |
| | | //@RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 |
| | | //@ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | //@WebAppConfiguration |
| | | public class Iqiyi2 { |
| | | |
| | | private final static Logger errorLogger = LoggerFactory.getLogger("errorLogger"); |
| | |
| | | @Test |
| | | public void addResources() { |
| | | try { |
| | | VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476+""); |
| | | VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476 + ""); |
| | | if (videoInfo != null) { |
| | | if ("1".equalsIgnoreCase(videoInfo.getShow())) { |
| | | List<VideoResource> resourceList = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | |
| | | @Test |
| | | public void getDetail() { |
| | | IqiYiNewAPI.getAlbumOrVideoDetail(524533200L); |
| | | |
| | | } |
| | | |
| | | |
| | | } |