Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-3

ExifRewriteTest. failing in Gump

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-alpha1
    • None
    • None

    Description

      The ExifRewriteTest.is failing in Gump - it works fine for me (Windows 7 / JDK 1.6) - but for some reason theres a problem with gump.

      I modified the test to output more information about the point at which its failing (file/dir/fieldTag/byte):

      http://svn.apache.org/viewvc?view=revision&revision=1003442

      The output from gump shows the following:

      -------------------------------------------------------------------------------
      Test set: org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest
      -------------------------------------------------------------------------------
      Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed: 4.354 sec <<< FAILURE!
      testInsert(org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest)  Time elapsed: 1.109 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Oregon Scientific DS6639 - DSC_0307 - small.jpg, dirType[1]=0, fieldTag[0]=270, byte[0] expected:<-110> but was:<-17>
      	at junit.framework.Assert.fail(Assert.java:47)
      	at junit.framework.Assert.failNotEquals(Assert.java:283)
      	at junit.framework.Assert.assertEquals(Assert.java:64)
      	at junit.framework.Assert.assertEquals(Assert.java:156)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:522)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:469)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.testInsert(ExifRewriteTest.java:170)
      
      testRewriteLossy(org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest)  Time elapsed: 1.044 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Oregon Scientific DS6639 - DSC_0307 - small.jpg, dirType[1]=0, fieldTag[0]=270, byte[0] expected:<-110> but was:<-17>
      	at junit.framework.Assert.fail(Assert.java:47)
      	at junit.framework.Assert.failNotEquals(Assert.java:283)
      	at junit.framework.Assert.assertEquals(Assert.java:64)
      	at junit.framework.Assert.assertEquals(Assert.java:156)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:522)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:469)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.rewrite(ExifRewriteTest.java:249)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.testRewriteLossy(ExifRewriteTest.java:287)
      
      testRewriteLossless(org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest)  Time elapsed: 1.074 sec  <<< FAILURE!
      junit.framework.AssertionFailedError: Oregon Scientific DS6639 - DSC_0307 - small.jpg, dirType[1]=0, fieldTag[0]=270, byte[0] expected:<-110> but was:<-17>
      	at junit.framework.Assert.fail(Assert.java:47)
      	at junit.framework.Assert.failNotEquals(Assert.java:283)
      	at junit.framework.Assert.assertEquals(Assert.java:64)
      	at junit.framework.Assert.assertEquals(Assert.java:156)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:522)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.compare(ExifRewriteTest.java:469)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.rewrite(ExifRewriteTest.java:249)
      	at org.apache.sanselan.formats.jpeg.exif.ExifRewriteTest.testRewriteLossless(ExifRewriteTest.java:304)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            niallp Niall Pemberton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: