use of loci.formats.in.FakeReader in project bioformats by openmicroscopy.
the class FakeReaderTest method setUp.
@BeforeMethod
public void setUp() throws Exception {
wd = Files.createTempDirectory(this.getClass().getName());
reader = new FakeReader();
ServiceFactory sf = new ServiceFactory();
service = sf.getInstance(OMEXMLService.class);
reader.setMetadataStore(service.createOMEXMLMetadata());
}
use of loci.formats.in.FakeReader in project bioformats by openmicroscopy.
the class MemoizerTest method setUp.
@BeforeMethod
public void setUp() throws Exception {
idDir = createTempDir();
File tempFile = new File(idDir, TEST_FILE);
tempFile.createNewFile();
id = tempFile.getAbsolutePath();
// No setId !
reader = new FakeReader();
}
use of loci.formats.in.FakeReader in project bioformats by openmicroscopy.
the class FileStitcherTest method testUnderlyingReaders.
@Test
public void testUnderlyingReaders() throws IOException, FormatException {
FakeReader reader = new FakeReader();
FileStitcher fs = new FileStitcher(reader);
assertNotNull(fs.getUnderlyingReaders());
fs.setId("test_z<0-2>.fake");
assertNotNull(fs.getUnderlyingReaders());
fs.close();
}
Aggregations