From b37275dba6b782bf3bb3817c4504f6cdef1bef7c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 18 三月 2021 18:38:51 +0800 Subject: [PATCH] APP首页顶部标签兼容 --- src/test/java/com/hxh/spring/test/VideoTest.java | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/hxh/spring/test/VideoTest.java b/src/test/java/com/hxh/spring/test/VideoTest.java index 8eec1c7..59d89ec 100644 --- a/src/test/java/com/hxh/spring/test/VideoTest.java +++ b/src/test/java/com/hxh/spring/test/VideoTest.java @@ -1,7 +1,7 @@ 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; @@ -16,13 +16,22 @@ 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 org.yeshi.utils.HttpUtil; +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) { @@ -32,7 +41,6 @@ videoService.addNOAddToCategoryVideo(); } } - @SuppressWarnings("unchecked") @@ -90,7 +98,7 @@ DetailSystem detailSystem = systemService.getDetailSystemByPackage("com.doudou.ysvideo"); - PlayUrl pu = videoDeailUtil.getPlayUrl(null,detailSystem.getId(), 3357160 + "", "acFunVideo", + PlayUrl pu = videoDeailUtil.getPlayUrl(null, detailSystem.getId(), 3357160 + "", "acFunVideo", Integer.parseInt(21 + ""), 3357160 + ""); } @@ -146,4 +154,15 @@ System.out.println(isMatch); } + + @Resource + private VideoManager videoManager; + + @Test + public void deleteVideo() { + videoManager.deleteVideo("8234976"); + videoManager.deleteVideo("8254725"); + videoManager.deleteVideo("8254726"); + } + } -- Gitblit v1.8.0