Class FormatReaderTest

java.lang.Object
loci.tests.testng.FormatReaderTest

public class FormatReaderTest extends Object
TestNG tester for Bio-Formats file format readers. Details on failed tests are written to a log file, for easier processing. NB: loci.formats.ome and ome-xml.jar are required for some of the tests. To run tests: ant -Dtestng.directory="/path" -Dtestng.multiplier="1.0" test-all
  • Field Details

    • configTree

      public static ConfigurationTree configTree
      Configuration tree structure containing dataset metadata.
  • Constructor Details

    • FormatReaderTest

      public FormatReaderTest(String filename, float multiplier, boolean inMemory)
  • Method Details

    • getID

      public String getID()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setup

      public void setup() throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Throws:
      IOException
    • saveFileDescriptorCount

      public void saveFileDescriptorCount() throws IOException
      Throws:
      IOException
    • checkFileDescriptorCount

      public void checkFileDescriptorCount() throws IOException
      Throws:
      IOException
    • testBufferedImageDimensions

      public void testBufferedImageDimensions()
    • testByteArrayDimensions

      public void testByteArrayDimensions()
    • testThumbnailImageDimensions

      public void testThumbnailImageDimensions()
    • testThumbnailByteArrayDimensions

      public void testThumbnailByteArrayDimensions()
    • testImageCount

      public void testImageCount()
    • testTileWidth

      public void testTileWidth()
    • testTileHeight

      public void testTileHeight()
    • testOMEXML

      public void testOMEXML()
    • testConsistentReader

      public void testConsistentReader()
    • testSaneOMEXML

      public void testSaneOMEXML()
    • testUnflattenedSaneOMEXML

      public void testUnflattenedSaneOMEXML()
    • testSeriesCount

      public void testSeriesCount()
    • testSizeX

      public void testSizeX()
    • testSizeY

      public void testSizeY()
    • testSizeZ

      public void testSizeZ()
    • testSizeC

      public void testSizeC()
    • testSizeT

      public void testSizeT()
    • testDimensionOrder

      public void testDimensionOrder()
    • testIsInterleaved

      public void testIsInterleaved()
    • testIndexed

      public void testIndexed()
    • testFalseColor

      public void testFalseColor()
    • testRGB

      public void testRGB()
    • testThumbSizeX

      public void testThumbSizeX()
    • testThumbSizeY

      public void testThumbSizeY()
    • testPixelType

      public void testPixelType()
    • testLittleEndian

      public void testLittleEndian()
    • testPhysicalSizeX

      public void testPhysicalSizeX()
    • testPhysicalSizeY

      public void testPhysicalSizeY()
    • testPhysicalSizeZ

      public void testPhysicalSizeZ()
    • testTimeIncrement

      public void testTimeIncrement()
    • testLightSources

      public void testLightSources()
    • testChannelNames

      public void testChannelNames()
    • testExposureTimes

      public void testExposureTimes()
    • testDeltaT

      public void testDeltaT()
    • testPlanePositions

      public void testPlanePositions()
    • testEmissionWavelengths

      public void testEmissionWavelengths()
    • testExcitationWavelengths

      public void testExcitationWavelengths()
    • testDetectors

      public void testDetectors()
    • testImageNames

      public void testImageNames()
    • testUnflattenedImageNames

      public void testUnflattenedImageNames()
    • testImageDescriptions

      public void testImageDescriptions()
    • testHCSMetadata

      public void testHCSMetadata()
    • testEqualOMEXML

      public void testEqualOMEXML()
    • testPerformance

      public void testPerformance()
    • testRequiredDirectories

      public void testRequiredDirectories()
    • testSaneUsedFiles

      public void testSaneUsedFiles()
    • testValidXML

      public void testValidXML()
    • testUnflattenedPixelsHashes

      public void testUnflattenedPixelsHashes()
    • testPixelsHashes

      public void testPixelsHashes()
    • testUnflattenedSubimagePixelsHashes

      public void testUnflattenedSubimagePixelsHashes()
    • testSubimagePixelsHashes

      public void testSubimagePixelsHashes()
    • testIsThisTypeConsistent

      public void testIsThisTypeConsistent()
    • testIsThisType

      public void testIsThisType()
      In most cases, this test will: - get the lowest-level reader for the file being tested - iterate over each used file in the fileset * iterate over each available reader (i.e. all of readers.txt) - check if the reader picks up the used file - fail the test if either is true: * the reader picks up the file, but is not an instance of the original lowest-level reader * the reader does not pick up the file, and is an instance of the original lowest-level reader There are a number of special cases, as many formats cannot be reliably detected from all files in the fileset. TIFF-based formats are especially prone to this issue. When adding a special case, take care to choose the appropriate location (type checking can be expensive for filesets with many files): - inside the used file loop, but outside the reader loop * if some used files are not expected to be passed to setId, and could be picked up by many different readers, then a special case in this location can save a lot of time. TIFF-based HCS formats usually belong here. - inside both the used file and reader loops, before type checking occurs * if some files are expected to be picked up by one different reader in particular, this allows bypassing the type check for specific file/reader combinations - inside both the used file and reader loops, after type checking occurs * this is the most expensive option in terms of time, but necessary in the common case where the type check matters
    • testMemoFileUsage

      public void testMemoFileUsage()
    • testCompressedTile

      public void testCompressedTile() throws IOException
      Throws:
      IOException
    • writeConfigFile

      public void writeConfigFile() throws IOException
      Throws:
      IOException
    • writeCacheFile

      public void writeCacheFile() throws IOException
      Throws:
      IOException
    • writeXML

      public void writeXML()
    • saveFileScanList

      public void saveFileScanList()