测试类注释

pull/5/head
infin_caishuxiao 8 years ago
parent 8926f50608
commit 2aaeacd8ef

@ -2,23 +2,21 @@ package com.xxl.job.executor.test;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import com.infincash.cron.collection.CronJobHandler;
import com.xxl.job.executor.Application;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class ,webEnvironment= SpringBootTest.WebEnvironment.RANDOM_PORT)
public class XxlJobExecutorExampleBootApplicationTests {
@Autowired
CronJobHandler jobHandler;
// @Autowired
// CronJobHandler jobHandler;
@Test
public void test() throws Exception {
jobHandler.execute("");
// jobHandler.execute("");
}
}
Loading…
Cancel
Save