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

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

see #12282 - handle warnings for mappaint styles:

  • Log warnings that occur when loading style
  • Display them in Mappaint dialog (Info action)
  • Drop redundant error icon
  • Ignore XML styles in styles validation test
  • Make styles validation test fail if at least a warning occur
File size: 684 bytes
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;
7
8import org.junit.Test;
9import org.openstreetmap.josm.TestUtils;
10
11/**
12 * Unit tests of {@link ImageEntry} class.
13 */
14public class ImageEntryTest {
15
16 /**
17 * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12255">#12255</a>.
18 */
19 @Test
20 public void testTicket12255() {
21 ImageEntry e = new ImageEntry(new File(TestUtils.getRegressionDataFile(12255, "G0016941.JPG")));
22 e.extractExif();
23 assertNotNull(e.getExifTime());
24 }
25}
Note: See TracBrowser for help on using the repository browser.