You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2015/11/06 00:26:27 UTC

[jira] [Commented] (VALIDATOR-369) DateValidatorTest.testCompare() fails with GMT-12

    [ https://issues.apache.org/jira/browse/VALIDATOR-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14992700#comment-14992700 ] 

Sebb commented on VALIDATOR-369:
--------------------------------

Countries using GMT-12:

Baker Island: an uninhabited atoll located just north of the equator in the central Pacific Ocean about 3,100 kilometres (1,900 miles) southwest of Honolulu. - 

See more at: http://wwp.greenwichmeantime.com/time-zone/gmt-12/

Which might explain why it has not previously been reported!

> DateValidatorTest.testCompare() fails with GMT-12
> -------------------------------------------------
>
>                 Key: VALIDATOR-369
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-369
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Routines
>    Affects Versions: 1.4.1 Release
>            Reporter: Emmanuel Bourg
>             Fix For: 1.5.0
>
>
> There is a test failure when the system timezone is set to GMT-12:
> {code}
> Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec <<< FAILURE! - in org.apache.commons.validator.routines.DateValidatorTest
> testCompare(org.apache.commons.validator.routines.DateValidatorTest)  Time elapsed: 0.004 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: date EQ expected:<0> but was:<1>
>         at junit.framework.Assert.fail(Assert.java:57)
>         at junit.framework.Assert.failNotEquals(Assert.java:329)
>         at junit.framework.Assert.assertEquals(Assert.java:78)
>         at junit.framework.Assert.assertEquals(Assert.java:234)
>         at junit.framework.TestCase.assertEquals(TestCase.java:401)
>         at org.apache.commons.validator.routines.DateValidatorTest.testCompare(DateValidatorTest.java:126)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)