Package gov.nih.mipav.model.file
Class MetadataExtractorTest.ExifReaderTest
- java.lang.Object
-
- gov.nih.mipav.model.file.MetadataExtractorTest.ExifReaderTest
-
- Enclosing class:
- MetadataExtractorTest
public class MetadataExtractorTest.ExifReaderTest extends java.lang.Object
JUnit test case for class ExifReader.- Author:
- Drew Noakes https://drewnoakes.com
-
-
Constructor Summary
Constructors Constructor Description ExifReaderTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataExtractor.Metadata
processBytes(java.lang.String filePath)
<T extends MetadataExtractor.Directory>
TprocessBytes(java.lang.String filePath, java.lang.Class<T> directoryClass)
void
testCompression()
void
testCrashRegressionTest()
void
testDateTime()
void
testDifferenceImageAndThumbnailOrientations()
void
testExtractWithNullDataThrows()
void
testLoadFujifilmJpeg()
void
testReadJpegSegmentWithNoExifData()
void
testStackOverflowOnRevisitationOfSameDirectory()
void
testThumbnailLength()
void
testThumbnailOffset()
void
testThumbnailXResolution()
void
testThumbnailYResolution()
-
-
-
Method Detail
-
processBytes
public MetadataExtractor.Metadata processBytes(java.lang.String filePath) throws java.io.IOException
- Throws:
java.io.IOException
-
processBytes
public <T extends MetadataExtractor.Directory> T processBytes(java.lang.String filePath, java.lang.Class<T> directoryClass) throws java.io.IOException
- Throws:
java.io.IOException
-
testExtractWithNullDataThrows
public void testExtractWithNullDataThrows() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLoadFujifilmJpeg
public void testLoadFujifilmJpeg() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testReadJpegSegmentWithNoExifData
public void testReadJpegSegmentWithNoExifData() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCrashRegressionTest
public void testCrashRegressionTest() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDateTime
public void testDateTime() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testThumbnailXResolution
public void testThumbnailXResolution() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testThumbnailYResolution
public void testThumbnailYResolution() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testThumbnailOffset
public void testThumbnailOffset() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testThumbnailLength
public void testThumbnailLength() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testCompression
public void testCompression() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testStackOverflowOnRevisitationOfSameDirectory
public void testStackOverflowOnRevisitationOfSameDirectory() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testDifferenceImageAndThumbnailOrientations
public void testDifferenceImageAndThumbnailOrientations() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-