Changeset 11745 in josm for trunk/test/unit


Ignore:
Timestamp:
2017-03-19T01:16:39+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #14536 - Improved ExifReader.readTime(), Refactored ImageEntry.extractExif() (patch by holgermappt)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/ExifReaderTest.java

    r11514 r11745  
    117117
    118118    /**
     119     * Test speed extraction
     120     */
     121    @Test
     122    public void testReadSpeed() {
     123        assertEquals(Double.valueOf(12.3), ExifReader.readSpeed(new File("data_nodist/exif-example_speed_ele.jpg")));
     124    }
     125
     126    /**
     127     * Test elevation extraction
     128     */
     129    @Test
     130    public void testReadElevation() {
     131        assertEquals(Double.valueOf(23.4), ExifReader.readElevation(new File("data_nodist/exif-example_speed_ele.jpg")));
     132    }
     133
     134    /**
    119135     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/11685">#11685</a>
    120136     * @throws IOException if an error occurs during reading
Note: See TracChangeset for help on using the changeset viewer.