Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.layer.geoimage;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNotNull;
|
---|
5 |
|
---|
6 | import java.io.File;
|
---|
7 | import java.io.IOException;
|
---|
8 |
|
---|
9 | import org.junit.Test;
|
---|
10 | import org.openstreetmap.josm.TestUtils;
|
---|
11 | import org.openstreetmap.josm.io.IllegalDataException;
|
---|
12 | import org.xml.sax.SAXException;
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Unit tests of {@link ImageEntry} class.
|
---|
16 | */
|
---|
17 | public 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.