| | |
| | | package com.hxh.spring.test.video; |
| | | |
| | | import com.google.gson.Gson; |
| | | import com.yeshi.buwan.job.RankJob; |
| | | import com.yeshi.buwan.util.rank.IqiyiRankUtil; |
| | | import com.yeshi.buwan.util.rank.MaoYanUtil; |
| | | import org.junit.Test; |
| | | import org.junit.runner.RunWith; |
| | | import org.springframework.test.context.ContextConfiguration; |
| | | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; |
| | | import org.springframework.test.context.web.WebAppConfiguration; |
| | | import org.yeshi.utils.StringUtil; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试 |
| | | @ContextConfiguration(locations = {"classpath:spring.xml"}) |
| | | @WebAppConfiguration |
| | | public class RankTest { |
| | | |
| | | @Resource |
| | | private RankJob rankJob; |
| | | |
| | | @Test |
| | | public void getMaoYanRank() { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | @Test |
| | | public void updateRank() throws Exception { |
| | | rankJob.updateIqiyiRank(""); |
| | | } |
| | | |
| | | } |