Changeset 32037 in osm for applications
- Timestamp:
- 2016-01-31T15:43:05+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/photo_geotagging/test
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/photo_geotagging/test/unit/org/openstreetmap/josm/plugins/photo_geotagging/ExifGPSTaggerTest.java
r31994 r32037 1 1 package org.openstreetmap.josm.plugins.photo_geotagging; 2 3 import static junit.framework.Assert.assertFalse; 2 4 3 5 import java.io.ByteArrayOutputStream; 4 6 import java.io.File; 5 7 import java.util.Date; 8 import java.util.Scanner; 6 9 7 10 import org.apache.commons.imaging.Imaging; … … 33 36 new ExifRewriter().updateExifMetadataLossless(in, new ByteArrayOutputStream(), outputSet); 34 37 } 38 39 @Test 40 public void testTicket11902() throws Exception { 41 final File in = new File(TestUtils.getTestDataRoot(), "IMG_7250_small.JPG"); 42 final File out = tempFolder.newFile(); 43 ExifGPSTagger.setExifGPSTag(in, out, 12, 34, new Date(), 12.34, Math.E, Math.PI); 44 final Process jhead = Runtime.getRuntime().exec(new String[]{"jhead", out.getAbsolutePath()}); 45 final String stdout = new Scanner(jhead.getErrorStream()).useDelimiter("\\A").next(); 46 System.out.println(stdout); 47 assertFalse(stdout.contains("Suspicious offset of first Exif IFD value")); 48 } 35 49 }
Note:
See TracChangeset
for help on using the changeset viewer.