| | |
| | | package com.hxh.spring.test; |
| | | |
| | | import com.yeshi.buwan.dao.VideoInfoDao; |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.domain.VideoInfo; |
| | | import com.yeshi.buwan.domain.entity.PlayUrl; |
| | | import com.yeshi.buwan.iqiyi.IqiYiNewAPI; |
| | | import com.yeshi.buwan.iqiyi.entity.IqiyiUpdateQueue; |
| | | import com.yeshi.buwan.iqiyi.util.IqiyiUtil; |
| | | import com.yeshi.buwan.exception.video.VideoPlayException; |
| | | import com.yeshi.buwan.videos.iqiyi.IqiYiNewAPI; |
| | | import com.yeshi.buwan.videos.iqiyi.entity.IqiyiUpdateQueue; |
| | | import com.yeshi.buwan.videos.iqiyi.util.IqiyiUtil; |
| | | import com.yeshi.buwan.service.imp.*; |
| | | import com.yeshi.buwan.service.imp.juhe.IqiyiQueueService; |
| | | import com.yeshi.buwan.util.BeanUtil; |
| | |
| | | import org.hibernate.HibernateException; |
| | | import org.hibernate.Session; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.orm.hibernate4.HibernateCallback; |
| | | import org.springframework.test.context.ContextConfiguration; |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| | | import org.springframework.test.context.web.WebAppConfiguration; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.Serializable; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.regex.Pattern; |
| | | |
| | | @RunWith(SpringJUnit4ClassRunner.class) |
| | | @ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | @WebAppConfiguration |
| | | public class VideoTest { |
| | | |
| | | public static void main(String[] args) { |
| | |
| | | videoService.addNOAddToCategoryVideo(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @SuppressWarnings("unchecked") |
| | |
| | | |
| | | DetailSystem detailSystem = systemService.getDetailSystemByPackage("com.doudou.ysvideo"); |
| | | |
| | | PlayUrl pu = videoDeailUtil.getPlayUrl(null,detailSystem.getId(), 3357160 + "", "acFunVideo", |
| | | Integer.parseInt(21 + ""), 3357160 + ""); |
| | | try { |
| | | PlayUrl pu = videoDeailUtil.getPlayUrl(null, detailSystem.getId(), 3357160 + "", "acFunVideo", |
| | | Integer.parseInt(21 + ""), 3357160 + ""); |
| | | } catch (VideoPlayException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @org.junit.Test |
| | |
| | | System.out.println(isMatch); |
| | | } |
| | | |
| | | |
| | | @Resource |
| | | private VideoManager videoManager; |
| | | |
| | | @Test |
| | | public void deleteVideo() { |
| | | videoManager.deleteVideo("8234976"); |
| | | videoManager.deleteVideo("8254725"); |
| | | videoManager.deleteVideo("8254726"); |
| | | } |
| | | |
| | | } |