| | |
| | | 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) { |
| | |
| | | videoService.addNOAddToCategoryVideo(); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | @SuppressWarnings("unchecked") |
| | |
| | | |
| | | 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 + ""); |
| | | } |
| | | |
| | |
| | | System.out.println(isMatch); |
| | | } |
| | | |
| | | |
| | | @Resource |
| | | private VideoManager videoManager; |
| | | |
| | | @Test |
| | | public void deleteVideo() { |
| | | videoManager.deleteVideo("8234976"); |
| | | videoManager.deleteVideo("8254725"); |
| | | videoManager.deleteVideo("8254726"); |
| | | } |
| | | |
| | | } |