use of com.dangdang.ddframe.job.cloud.scheduler.env.RestfulServerConfiguration 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