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("");
|
}
|
|
|
}
|