Search in sources :

Example 1 with JobTriggerListener

use of com.dangdang.ddframe.job.lite.internal.schedule.JobTriggerListener in project elastic-job by dangdangdotcom.

the class JobSchedulerTest method mockInit.

private void mockInit(final boolean isMisfire) {
    when(schedulerFacade.newJobTriggerListener()).thenReturn(new JobTriggerListener(null, null));
    when(schedulerFacade.loadJobConfiguration()).thenReturn(LiteJobConfiguration.newBuilder(new SimpleJobConfiguration(JobCoreConfiguration.newBuilder("test_job", "* * 0/10 * * ? 2050", 3).misfire(isMisfire).build(), TestSimpleJob.class.getCanonicalName())).build());
}
Also used : SimpleJobConfiguration(com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration) JobTriggerListener(com.dangdang.ddframe.job.lite.internal.schedule.JobTriggerListener)

Aggregations

SimpleJobConfiguration (com.dangdang.ddframe.job.config.simple.SimpleJobConfiguration)1 JobTriggerListener (com.dangdang.ddframe.job.lite.internal.schedule.JobTriggerListener)1