|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.formats.OMEROImportFixture
public class OMEROImportFixture
test fixture for importing files without a GUI. Sample usage:
OMEROMetadataStoreClient client = new OMEROMetadataStoreClient(sf); OMEROImportFixture fixture = new OMEROImportFixture(client); fixture.setUp(); fixture.setFile(ResourceUtils.getFile("classpath:tinyTest.d3d.dv")); fixture.setName(name); fixture.doImport(); List<Pixels> p = fixture.getPixels(); fixture.tearDown(); i.setName(name); i = userSave(i);This class is not thread safe.
OMEROMetadataStoreClient
Field Summary | |
---|---|
protected OMEROMetadataStoreClient |
store
|
Constructor Summary | |
---|---|
OMEROImportFixture(OMEROMetadataStoreClient store,
OMEROWrapper reader)
|
Method Summary | |
---|---|
void |
doImport()
runs import by looping through all files and then calling: ImportLibrary.open(String)
ImportLibrary#calculateImageCount(String)
ImportLibrary#importMetadata()
ImportLibrary#importData(long, String, ome.formats.testclient.ImportLibrary.Step)
|
List<omero.model.Pixels> |
fullImport(File f,
String name)
Provides one complete import cycle. |
List<omero.model.Pixels> |
getPixels()
Accessor for the created pixels. |
void |
setFile(File file)
|
void |
setName(String name)
|
void |
setUp()
checks for the necessary fields and initializes the ImportLibrary |
void |
tearDown()
sets ImportLibrary , OMEROMetadataStore , and file array to
null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected OMEROMetadataStoreClient store
Constructor Detail |
---|
public OMEROImportFixture(OMEROMetadataStoreClient store, OMEROWrapper reader)
Method Detail |
---|
public void setUp() throws Exception
ImportLibrary
Exception
public void tearDown()
ImportLibrary
, OMEROMetadataStore
, and file array to
null. Also attempts to call FormatReader.close()
.
public List<omero.model.Pixels> fullImport(File f, String name) throws Exception
Exception
public void doImport() throws Exception
ImportLibrary.open(String)
ImportLibrary#calculateImageCount(String)
ImportLibrary#importMetadata()
ImportLibrary#importData(long, String, ome.formats.testclient.ImportLibrary.Step)
step
- an action to take per plane. not null.
Exception
public void setFile(File file)
public void setName(String name)
public List<omero.model.Pixels> getPixels() throws Exception
doImport()
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.