You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "nguyen phuc lam (JIRA)" <ji...@apache.org> on 2012/11/09 10:18:11 UTC

[jira] [Created] (LANG-852) Insufficient datetime pattern in FastDateParserTest

nguyen phuc lam created LANG-852:
------------------------------------

             Summary: 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
            Priority: Minor
             Fix For: 3.x
         Attachments: FastDateParserTest.diff

One of the test cases in FastDateParserTest is failing due to insufficient date format. 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (LANG-852) Insufficient datetime pattern in FastDateParserTest

Posted by "nguyen phuc lam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nguyen phuc lam updated LANG-852:
---------------------------------

    Description: 
One of the test cases in FastDateParserTest is failing due to insufficient datetime patter. 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";

  was:
One of the test cases in FastDateParserTest is failing due to insufficient date format. 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";

    
> 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
>            Priority: Minor
>             Fix For: 3.x
>
>         Attachments: FastDateParserTest.diff
>
>
> One of the test cases in FastDateParserTest is failing due to insufficient datetime patter. 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (LANG-852) Insufficient datetime pattern in FastDateParserTest

Posted by "Charles Honton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charles Honton resolved LANG-852.
---------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 3.x)
                   Nightly Builds

svn commit: r1407715 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/time/FastDateParserTest.java
                
> 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
>             Fix For: Nightly Builds
>
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (LANG-852) Insufficient datetime pattern in FastDateParserTest

Posted by "nguyen phuc lam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nguyen phuc lam updated LANG-852:
---------------------------------

    Description: 
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";

  was:
One of the test cases in FastDateParserTest is failing due to insufficient datetime patter. 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";

    
> 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
>            Priority: Minor
>             Fix For: 3.x
>
>         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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (LANG-852) Insufficient datetime pattern in FastDateParserTest

Posted by "nguyen phuc lam (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

nguyen phuc lam updated LANG-852:
---------------------------------

    Attachment: FastDateParserTest.diff
    
> 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
>            Priority: Minor
>             Fix For: 3.x
>
>         Attachments: FastDateParserTest.diff
>
>
> One of the test cases in FastDateParserTest is failing due to insufficient date format. 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira