use of org.eclipse.scanning.points.validation.ValidatorService in project gda-core by openGDA.
the class ScanRequestConverterTest method setUpClass.
@BeforeClass
public static void setUpClass() {
final ServiceHolder serviceHolder = new ServiceHolder();
serviceHolder.setValidatorService(new ValidatorService());
serviceHolder.setPointGeneratorService(new PointGeneratorService());
}
use of org.eclipse.scanning.points.validation.ValidatorService in project gda-core by openGDA.
the class ScannableNexusWrapperScanTest method setServices.
@BeforeClass
public static void setServices() throws Exception {
jythonServer = mock(JythonServer.class);
scannableDeviceService = new ScannableDeviceConnectorService();
// Not testing OSGi so using hard coded service.
scanService = new RunnableDeviceServiceImpl(scannableDeviceService);
pointGenService = new PointGeneratorService();
nexusFileFactory = new NexusFileFactoryHDF5();
final ActivemqConnectorService activemqConnectorService = new ActivemqConnectorService();
activemqConnectorService.setJsonMarshaller(new MarshallerService(new PointsModelMarshaller()));
final IEventService eservice = new EventServiceImpl(activemqConnectorService);
final Services services = new Services();
services.setEventService(eservice);
services.setRunnableDeviceService(scanService);
services.setGeneratorService(pointGenService);
services.setConnector(scannableDeviceService);
final INexusDeviceService nexusDeviceService = new NexusDeviceService();
new org.eclipse.dawnsci.nexus.ServiceHolder().setNexusFileFactory(nexusFileFactory);
final org.eclipse.scanning.sequencer.ServiceHolder serviceHolder = new org.eclipse.scanning.sequencer.ServiceHolder();
serviceHolder.setNexusDeviceService(nexusDeviceService);
serviceHolder.setNexusScanFileService(new NexusScanFileServiceImpl());
serviceHolder.setOperationService(new MockOperationService());
serviceHolder.setFilePathService(new MockFilePathService());
final org.eclipse.dawnsci.nexus.scan.ServiceHolder scanServiceHolder = new org.eclipse.dawnsci.nexus.scan.ServiceHolder();
scanServiceHolder.setNexusDeviceService(nexusDeviceService);
scanServiceHolder.setNexusBuilderFactory(new DefaultNexusBuilderFactory());
final org.eclipse.scanning.points.ServiceHolder pointsServiceHolder = new org.eclipse.scanning.points.ServiceHolder();
pointsServiceHolder.setValidatorService(new ValidatorService());
pointsServiceHolder.setPointGeneratorService(new PointGeneratorService());
}
Aggregations