|
|
@@ -2,12 +2,12 @@ package quartz;
|
|
2
|
2
|
|
|
3
|
3
|
|
|
4
|
4
|
import java.lang.reflect.InvocationTargetException;
|
|
5
|
|
-import java.util.Set;
|
|
|
5
|
+import java.util.List;
|
|
|
6
|
+import java.util.Map;
|
|
6
|
7
|
import java.util.concurrent.TimeUnit;
|
|
7
|
8
|
|
|
8
|
9
|
import org.junit.Test;
|
|
9
|
10
|
import org.junit.runner.RunWith;
|
|
10
|
|
-import org.quartz.JobKey;
|
|
11
|
11
|
import org.quartz.SchedulerException;
|
|
12
|
12
|
import org.springframework.test.context.ContextConfiguration;
|
|
13
|
13
|
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
|
|
@@ -21,7 +21,7 @@ public class JunitTest {
|
|
21
|
21
|
|
|
22
|
22
|
@Test
|
|
23
|
23
|
public void getJobKeys() throws SchedulerException, IllegalAccessException, InvocationTargetException, NoSuchMethodException, InterruptedException {
|
|
24
|
|
- Set<JobKey> list = DynamicSchedulerUtil.getJobKeys();
|
|
|
24
|
+ List<Map<String, Object>> list = DynamicSchedulerUtil.getJobList();
|
|
25
|
25
|
System.out.println(list);
|
|
26
|
26
|
TimeUnit.SECONDS.sleep(30);
|
|
27
|
27
|
}
|