Package ome.formats.importer
Class ImportFixture
- java.lang.Object
-
- ome.formats.importer.ImportFixture
-
public class ImportFixture extends java.lang.Object
test fixture for importing files without a GUI.- Since:
- 3.0-M3
- See Also:
OMEROMetadataStoreClient
-
-
Constructor Summary
Constructors Constructor Description ImportFixture(OMEROMetadataStoreClient store, OMEROWrapper reader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doImport()
Runs import by looping through all files and then callingImportLibrary.importImage(ImportContainer, int, int, int)
.ImportFixture
put(java.io.File file, Dataset ds)
ImportFixture
putAll(java.util.Map<java.io.File,Dataset> map)
void
setUp()
checks for the necessary fields and initializes theImportLibrary
void
tearDown()
setsImportLibrary
,OMEROMetadataStoreClient
, and file array to null.
-
-
-
Constructor Detail
-
ImportFixture
public ImportFixture(OMEROMetadataStoreClient store, OMEROWrapper reader)
-
-
Method Detail
-
put
public ImportFixture put(java.io.File file, Dataset ds)
-
putAll
public ImportFixture putAll(java.util.Map<java.io.File,Dataset> map)
-
setUp
public void setUp() throws java.lang.Exception
checks for the necessary fields and initializes theImportLibrary
- Throws:
java.lang.Exception
- if setup failed
-
tearDown
public void tearDown()
setsImportLibrary
,OMEROMetadataStoreClient
, and file array to null. Also attempts to callFormatReader.close()
.
-
doImport
public void doImport() throws java.lang.Throwable
Runs import by looping through all files and then callingImportLibrary.importImage(ImportContainer, int, int, int)
.- Throws:
java.lang.Throwable
- reporting a problem with import
-
-