Test failure in ShowArtifactActionTest for certain locales
----------------------------------------------------------

                 Key: MRM-1388
                 URL: http://jira.codehaus.org/browse/MRM-1388
             Project: Archiva
          Issue Type: Test
         Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: sv_SE, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
            Reporter: Dennis Lundberg


This test fails for me with a Swedish (sv_SE) locale:

{code:java}
assertEquals( "12.06 K", actual.getSize() );
{code}

The Swedish locale specifies ',' as the decimal separator, but the test above 
is dependant on a locale that uses '.' as a decimal separator.

Surefire report output:
{noformat}
Tests run: 15, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 17.641 sec <<< 
FAILURE!
testGetArtifactUniqueSnapshot(org.apache.maven.archiva.web.action.ShowArtifactActionTest)
  Time elapsed: 1.109 sec  <<< FAILURE!
junit.framework.ComparisonFailure: expected:<.......> but was:<...,...>
        at junit.framework.Assert.assertEquals(Assert.java:81)
        at junit.framework.Assert.assertEquals(Assert.java:87)
        at 
org.apache.maven.archiva.web.action.ShowArtifactActionTest.assertArtifacts(ShowArtifactActionTest.java:415)
        at 
org.apache.maven.archiva.web.action.ShowArtifactActionTest.testGetArtifactUniqueSnapshot(ShowArtifactActionTest.java:119)
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to