use of com.dangdang.ddframe.job.cloud.scheduler.producer.ProducerManager in project elastic-job by dangdangdotcom.
the class AbstractCloudRestfulApiTest method setUpClass.
@BeforeClass
public static void setUpClass() throws Exception {
regCenter = mock(CoordinatorRegistryCenter.class);
jobEventRdbSearch = mock(JobEventRdbSearch.class);
SchedulerDriver schedulerDriver = mock(SchedulerDriver.class);
ProducerManager producerManager = new ProducerManager(schedulerDriver, regCenter);
producerManager.startup();
restfulService = new RestfulService(regCenter, new RestfulServerConfiguration(19000), producerManager);
restfulService.start();
}
Aggregations