Package gov.nih.mipav.model.file
Class MetadataExtractorTest.SequentialAccessTestBase
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractorTest.SequentialAccessTestBase
-
- Direct Known Subclasses:
MetadataExtractorTest.SequentialByteArrayReaderTest
,MetadataExtractorTest.StreamReaderTest
- Enclosing class:
- MetadataExtractorTest
public abstract class MetadataExtractorTest.SequentialAccessTestBase extends java.lang.Object
Base class for testing implementations ofcom.drew.lang.SequentialReader
.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Constructor Summary
Constructors Constructor Description SequentialAccessTestBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract MetadataExtractor.SequentialReader
createReader(byte[] bytes)
void
testDefaultEndianness()
void
testGetBytes()
void
testGetBytesEOF()
void
testGetFloat32()
void
testGetFloat64()
void
testGetInt16()
void
testGetInt32()
void
testGetInt32_OutOfBounds()
void
testGetInt64()
void
testGetInt64_OutOfBounds()
void
testGetInt8()
void
testGetInt8EOF()
void
testGetNullTerminatedString()
void
testGetString()
void
testGetUInt16()
void
testGetUInt16_OutOfBounds()
void
testGetUInt32()
void
testGetUInt8()
void
testGetUInt8_OutOfBounds()
void
testOverflowBoundsCalculation()
void
testSkipEOF()
void
testTrySkipEOF()
-
-
-
Method Detail
-
createReader
protected abstract MetadataExtractor.SequentialReader createReader(byte[] bytes)
-
testDefaultEndianness
public void testDefaultEndianness()
-
testGetInt8
public void testGetInt8() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetUInt8
public void testGetUInt8() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetUInt8_OutOfBounds
public void testGetUInt8_OutOfBounds()
-
testGetInt16
public void testGetInt16() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetUInt16
public void testGetUInt16() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetUInt16_OutOfBounds
public void testGetUInt16_OutOfBounds()
-
testGetInt32
public void testGetInt32() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetUInt32
public void testGetUInt32() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetInt32_OutOfBounds
public void testGetInt32_OutOfBounds()
-
testGetInt64
public void testGetInt64() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetInt64_OutOfBounds
public void testGetInt64_OutOfBounds()
-
testGetFloat32
public void testGetFloat32() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetFloat64
public void testGetFloat64() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetNullTerminatedString
public void testGetNullTerminatedString() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetString
public void testGetString() throws java.io.IOException
- Throws:
java.io.IOException
-
testGetBytes
public void testGetBytes() throws java.io.IOException
- Throws:
java.io.IOException
-
testOverflowBoundsCalculation
public void testOverflowBoundsCalculation()
-
testGetBytesEOF
public void testGetBytesEOF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testGetInt8EOF
public void testGetInt8EOF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testSkipEOF
public void testSkipEOF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testTrySkipEOF
public void testTrySkipEOF() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-