Package ome.formats.importer
Class ImportFixture
- java.lang.Object
-
- ome.formats.importer.ImportFixture
-
public class ImportFixture extends java.lang.Objecttest 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 voiddoImport()Runs import by looping through all files and then callingImportLibrary.importImage(ImportContainer, int, int, int).ImportFixtureput(java.io.File file, Dataset ds)ImportFixtureputAll(java.util.Map<java.io.File,Dataset> map)voidsetUp()checks for the necessary fields and initializes theImportLibraryvoidtearDown()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.Exceptionchecks 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.ThrowableRuns import by looping through all files and then callingImportLibrary.importImage(ImportContainer, int, int, int).- Throws:
java.lang.Throwable- reporting a problem with import
-
-