assertFalse(new ImageMetadataExtractor.ExifHandler().supports(JpegCommentDirectory.class));
}
public void testExifHandlerParseDate() throws MetadataException {
ExifDirectory exif = mock(ExifDirectory.class);
when(exif.containsTag(ExifDirectory.TAG_DATETIME_ORIGINAL)).thenReturn(true);
when(exif.getDate(ExifDirectory.TAG_DATETIME_ORIGINAL)).thenReturn(
new GregorianCalendar(2000, 0, 1, 0, 0, 0).getTime()); // jvm default timezone as in Metadata Extractor
Metadata metadata = new Metadata();
new ImageMetadataExtractor.ExifHandler().handle(exif, metadata);