source: josm/trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/ImageEntryTest.java@ 9329

Last change on this file since 9329 was 9329, checked in by Don-vip, 8 years ago

fix #12255 - fix EXIF time parsing regression

File size: 1.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.layer.geoimage;
3
4import static org.junit.Assert.assertNotNull;
5
6import java.io.File;
7import java.io.IOException;
8
9import org.junit.Test;
10import org.openstreetmap.josm.TestUtils;
11import org.openstreetmap.josm.io.IllegalDataException;
12import org.xml.sax.SAXException;
13
14/**
15 * Unit tests of {@link ImageEntry} class.
16 */
17public class ImageEntryTest {
18
19 /**
20 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12255">#12255</a>.
21 * @throws IllegalDataException if an error was found while parsing the data from the source
22 * @throws IOException if any I/O error occurs
23 * @throws SAXException if any XML error occurs
24 */
25 @Test
26 public void testTicket12255() throws IllegalDataException, IOException, SAXException {
27 ImageEntry e = new ImageEntry(new File(TestUtils.getRegressionDataFile(12255, "G0016941.JPG")));
28 e.extractExif();
29 assertNotNull(e.getExifTime());
30 }
31}
Note: See TracBrowser for help on using the repository browser.