Package gov.nih.mipav.model.file
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
Base class for testing implementations of
MetadataExtractor.RandomAccessReader.- Author:
- Drew Noakes https://drewnoakes.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract MetadataExtractor.RandomAccessReadercreateReader(byte[] bytes) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
RandomAccessTestBase
public RandomAccessTestBase()
-
-
Method Details
-
createReader
-
testDefaultEndianness
public void testDefaultEndianness() -
testGetInt8
- Throws:
Exception
-
testGetUInt8
- Throws:
Exception
-
testGetUInt8_OutOfBounds
public void testGetUInt8_OutOfBounds() -
testGetInt16
- Throws:
Exception
-
testGetUInt16
- Throws:
Exception
-
testGetUInt16_OutOfBounds
public void testGetUInt16_OutOfBounds() -
testGetInt32
- Throws:
Exception
-
testGetUInt32
- Throws:
Exception
-
testGetInt32_OutOfBounds
public void testGetInt32_OutOfBounds() -
testGetInt64
- Throws:
IOException
-
testGetInt64_OutOfBounds
- Throws:
Exception
-
testGetFloat32
- Throws:
Exception
-
testGetFloat64
- Throws:
Exception
-
testGetNullTerminatedString
- Throws:
Exception
-
testGetString
- Throws:
Exception
-
testIndexPlusCountExceedsIntMaxValue
public void testIndexPlusCountExceedsIntMaxValue() -
testOverflowBoundsCalculation
public void testOverflowBoundsCalculation() -
testGetBytesEOF
- Throws:
Exception
-
testGetInt8EOF
- Throws:
Exception
-