ome.formats.importer
Class ImportFixture

java.lang.Object
  extended by ome.formats.importer.ImportFixture

public class ImportFixture
extends Object

test fixture for importing files without a GUI.

Since:
3.0-M3
Version:
$Revision: 1167 $, $Date: 2006-12-15 10:39:34 +0000 (Fri, 15 Dec 2006) $
Author:
Josh Moore, josh.moore at gmx.de
See Also:
OMEROMetadataStoreClient, ExampleUnitTest

Constructor Summary
ImportFixture(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)
 ImportFixture put(File file, omero.model.Dataset ds)
           
 ImportFixture putAll(Map<File,omero.model.Dataset> map)
           
 void setUp()
          checks for the necessary fields and initializes the ImportLibrary
 void tearDown()
          sets ImportLibrary, OMEROMetadataStoreClient, and file array to null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImportFixture

public ImportFixture(OMEROMetadataStoreClient store,
                     OMEROWrapper reader)
Method Detail

put

public ImportFixture put(File file,
                         omero.model.Dataset ds)

putAll

public ImportFixture putAll(Map<File,omero.model.Dataset> map)

setUp

public void setUp()
           throws Exception
checks for the necessary fields and initializes the ImportLibrary

Throws:
Exception

tearDown

public void tearDown()
sets ImportLibrary, OMEROMetadataStoreClient, and file array to null. Also attempts to call FormatReader.close().


doImport

public void doImport()
              throws Throwable
runs import by looping through all files and then calling:

Parameters:
step - an action to take per plane. not null.
Throws:
Exception
Throwable


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.