use of com.dangdang.ddframe.job.fixture.config.TestSimpleJobConfiguration in project elastic-job by dangdangdotcom.
the class JobExecutorFactoryTest method assertGetJobExecutorForSimpleJob.
@Test
public void assertGetJobExecutorForSimpleJob() {
when(jobFacade.getShardingContexts()).thenReturn(new ShardingContexts("fake_task_id", "simple_test_job", 10, "", Collections.<Integer, String>emptyMap()));
when(jobFacade.loadJobRootConfiguration(true)).thenReturn(new TestSimpleJobConfiguration());
assertThat(JobExecutorFactory.getJobExecutor(new TestSimpleJob(null), jobFacade), instanceOf(SimpleJobExecutor.class));
}
Aggregations