提交 e8d05db5 authored 作者: xueli.xue's avatar xueli.xue

init

...@@ -2,12 +2,12 @@ package quartz; ...@@ -2,12 +2,12 @@ package quartz;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.util.Set; import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.quartz.JobKey;
import org.quartz.SchedulerException; import org.quartz.SchedulerException;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
...@@ -21,7 +21,7 @@ public class JunitTest { ...@@ -21,7 +21,7 @@ public class JunitTest {
@Test @Test
public void getJobKeys() throws SchedulerException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InterruptedException { public void getJobKeys() throws SchedulerException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InterruptedException {
Set<JobKey> list = DynamicSchedulerUtil.getJobKeys(); List<Map<String, Object>> list = DynamicSchedulerUtil.getJobList();
System.out.println(list); System.out.println(list);
TimeUnit.SECONDS.sleep(30); TimeUnit.SECONDS.sleep(30);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论