admin
2021-04-30 cd4a4617fd33b0e25185ab2012a536821420fd80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.hxh.spring.test.live;
 
import com.yeshi.buwan.job.LiveJob;
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 javax.annotation.Resource;
 
@RunWith(SpringJUnit4ClassRunner.class) //使用junit4进行测试
@ContextConfiguration(locations = {"classpath:spring.xml"})
@WebAppConfiguration
public class TVLiveTest {
 
    @Resource
    private LiveJob liveJob;
 
    @Test
    public void syncMiGu() throws Exception {
        liveJob.updateMiGu("");
    }
 
 
}