use of org.exoplatform.services.scheduler.JobInfo in project kernel by exoplatform.
the class TestSchedulerService method testgetAvailableJobs.
public void testgetAvailableJobs() throws Exception {
List<JobDetail> availableJobs = service_.getAllJobs();
int size = availableJobs.size();
// some information about job execution
Date firedTime = new Date(System.currentTimeMillis() + 1000000);
service_.addJob(new JobInfo("queuejob", null, /* default group */
AJob.class), firedTime);
availableJobs = service_.getAllJobs();
assertEquals("Expect one job inthe queue", size + 1, availableJobs.size());
}
Aggregations