Class MetadataExtractorTest.RandomAccessTestBase

java.lang.Object
gov.nih.mipav.model.file.MetadataExtractorTest.RandomAccessTestBase
Direct Known Subclasses:
MetadataExtractorTest.ByteArrayReaderTest, MetadataExtractorTest.RandomAccessFileReaderTest, MetadataExtractorTest.RandomAccessStreamReaderTest
Enclosing class:
MetadataExtractorTest

public abstract class MetadataExtractorTest.RandomAccessTestBase extends Object
Base class for testing implementations of MetadataExtractor.RandomAccessReader.
Author:
Drew Noakes https://drewnoakes.com
  • Constructor Details

    • RandomAccessTestBase

      public RandomAccessTestBase()
  • Method Details

    • createReader

      protected abstract MetadataExtractor.RandomAccessReader createReader(byte[] bytes)
    • testDefaultEndianness

      public void testDefaultEndianness()
    • testGetInt8

      public void testGetInt8() throws Exception
      Throws:
      Exception
    • testGetUInt8

      public void testGetUInt8() throws Exception
      Throws:
      Exception
    • testGetUInt8_OutOfBounds

      public void testGetUInt8_OutOfBounds()
    • testGetInt16

      public void testGetInt16() throws Exception
      Throws:
      Exception
    • testGetUInt16

      public void testGetUInt16() throws Exception
      Throws:
      Exception
    • testGetUInt16_OutOfBounds

      public void testGetUInt16_OutOfBounds()
    • testGetInt32

      public void testGetInt32() throws Exception
      Throws:
      Exception
    • testGetUInt32

      public void testGetUInt32() throws Exception
      Throws:
      Exception
    • testGetInt32_OutOfBounds

      public void testGetInt32_OutOfBounds()
    • testGetInt64

      public void testGetInt64() throws IOException
      Throws:
      IOException
    • testGetInt64_OutOfBounds

      public void testGetInt64_OutOfBounds() throws Exception
      Throws:
      Exception
    • testGetFloat32

      public void testGetFloat32() throws Exception
      Throws:
      Exception
    • testGetFloat64

      public void testGetFloat64() throws Exception
      Throws:
      Exception
    • testGetNullTerminatedString

      public void testGetNullTerminatedString() throws Exception
      Throws:
      Exception
    • testGetString

      public void testGetString() throws Exception
      Throws:
      Exception
    • testIndexPlusCountExceedsIntMaxValue

      public void testIndexPlusCountExceedsIntMaxValue()
    • testOverflowBoundsCalculation

      public void testOverflowBoundsCalculation()
    • testGetBytesEOF

      public void testGetBytesEOF() throws Exception
      Throws:
      Exception
    • testGetInt8EOF

      public void testGetInt8EOF() throws Exception
      Throws:
      Exception