use of loci.common.services.ServiceFactory in project bioformats by openmicroscopy.
the class JHDFServiceTest method setUp.
@BeforeMethod
public void setUp() throws DependencyException, IOException {
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(JHDFService.class);
URL file = JHDFServiceTest.class.getResource(TEST_FILE);
service.setFile(file.getPath());
}
use of loci.common.services.ServiceFactory in project bioformats by openmicroscopy.
the class NetCDFServiceTest method setUp.
@BeforeMethod
public void setUp() throws DependencyException, IOException {
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(NetCDFService.class);
URL file = NetCDFServiceTest.class.getResource(TEST_FILE);
service.setFile(file.getPath());
}
use of loci.common.services.ServiceFactory in project bioformats by openmicroscopy.
the class POIServiceTest method setUp.
@BeforeMethod
public void setUp() throws DependencyException, IOException {
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(POIService.class);
URL file = this.getClass().getResource(TEST_XLS);
service.initialize(file.getPath());
}
use of loci.common.services.ServiceFactory in project bioformats by openmicroscopy.
the class OMEXMLServiceTest method setUp.
@BeforeMethod
public void setUp() throws DependencyException, IOException {
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(OMEXMLService.class);
InputStream s = OMEXMLServiceTest.class.getResourceAsStream(XML_FILE);
byte[] b = new byte[s.available()];
s.read(b);
s.close();
xml = new String(b);
}
use of loci.common.services.ServiceFactory in project bioformats by openmicroscopy.
the class BackReferenceTest method setUp.
@BeforeMethod
public void setUp() throws DependencyException, ServiceException, IOException {
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(OMEXMLService.class);
metadata = service.createOMEXMLMetadata();
}
Aggregations