commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-852) Insufficient datetime pattern in FastDateParserTest
Date Wed, 16 Oct 2013 08:53:46 GMT

     [ https://issues.apache.org/jira/browse/LANG-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell updated LANG-852:
-------------------------------

    Fix Version/s:     (was: Nightly Builds)

> Insufficient datetime pattern in FastDateParserTest
> ---------------------------------------------------
>
>                 Key: LANG-852
>                 URL: https://issues.apache.org/jira/browse/LANG-852
>             Project: Commons Lang
>          Issue Type: Test
>          Components: lang.time.*
>            Reporter: nguyen phuc lam
>            Assignee: Charles Honton
>            Priority: Minor
>         Attachments: FastDateParserTest.diff
>
>
> One of the test cases in FastDateParserTest is failing due to insufficient datetime pattern.
Here is the output from junit:
> Testcase: testParses took 0.015 sec
>     FAILED
> ja_JP 1940 G/y/M/d/h/a/E/Z America/New_York expected:<Sat Feb 10 12:20:00 SGT 1940>
but was:<Sat Feb 10 12:00:00 SGT 1940>
> junit.framework.AssertionFailedError: ja_JP 1940 G/y/M/d/h/a/E/Z America/New_York expected:<Sat
Feb 10 12:20:00 SGT 1940> but was:<Sat Feb 10 12:00:00 SGT 1940>
>     at org.apache.commons.lang3.time.FastDateParserTest.testParses(FastDateParserTest.java:221)
> To fix the failing test, it is necessary to change two date time patterns (short and
long forms) as follows:
>     private static final String SHORT_FORMAT_NOERA = "y/M/d/h/a/m/E/Z";
>     private static final String LONG_FORMAT_NOERA = "yyyy/MMMM/dddd/hhhh/mmmm/aaaa/EEEE/ZZZZ";



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message