use of com.dangdang.ddframe.job.fixture.job.OtherJob in project elastic-job by dangdangdotcom.
the class JobExecutorFactoryTest method assertGetJobExecutorWhenJobClassWhenUnsupportedJob.
@Test(expected = JobConfigurationException.class)
public void assertGetJobExecutorWhenJobClassWhenUnsupportedJob() {
when(jobFacade.getShardingContexts()).thenReturn(new ShardingContexts("fake_task_id", "unsupported_test_job", 10, "", Collections.<Integer, String>emptyMap()));
when(jobFacade.loadJobRootConfiguration(true)).thenReturn(new TestSimpleJobConfiguration());
JobExecutorFactory.getJobExecutor(new OtherJob(), jobFacade);
}
Aggregations