|
|
@ -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 { |
|
|
|
|
|
|
|
|
|
|
|
@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); |
|
|
|
} |
|
|
|
} |
|
|
|