[jira] Created: (DISPL-670) Displ252Test failure for locale != Locale.ENGLISH

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (DISPL-670) Displ252Test failure for locale != Locale.ENGLISH

JIRA jira@codehaus.org
Displ252Test failure for locale != Locale.ENGLISH
-------------------------------------------------

                 Key: DISPL-670
                 URL: https://jira.codehaus.org/browse/DISPL-670
             Project: DisplayTag
          Issue Type: Bug
          Components: Build/distribution
    Affects Versions: 1.3
            Reporter: Victor Homyakov
             Fix For: 1.3
         Attachments: Displ252Test.java

Unit test Displ252Test fails when default locale is other than Locale.ENGLISH.

Result of DateColumnDecorator (the actual value) is formatted using Locale.ENGLISH:
<code>FastDateFormat dateFormat = FastDateFormat.getInstance("EEEE", Locale.ENGLISH);</code>
but the expected value is formatted using default locale:
<code>new SimpleDateFormat("EEEE")</code>

Fix: use
<code>new SimpleDateFormat("EEEE", Locale.ENGLISH)</code>
in Displ252Test#doTest() (see attached fixed test file).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
displaytag-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (DISPL-670) Displ252Test failure for locale != Locale.ENGLISH

JIRA jira@codehaus.org

    [ https://jira.codehaus.org/browse/DISPL-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=278067#comment-278067 ]

Victor Homyakov commented on DISPL-670:
---------------------------------------

The same applies to MessageFormatColumnDecoratorTest.

> Displ252Test failure for locale != Locale.ENGLISH
> -------------------------------------------------
>
>                 Key: DISPL-670
>                 URL: https://jira.codehaus.org/browse/DISPL-670
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: Build/distribution
>    Affects Versions: 1.3
>            Reporter: Victor Homyakov
>             Fix For: 1.3
>
>         Attachments: Displ252Test.java, MessageFormatColumnDecoratorTest.java
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> Unit test Displ252Test fails when default locale is other than Locale.ENGLISH.
> Result of DateColumnDecorator (the actual value) is formatted using Locale.ENGLISH:
> <code>FastDateFormat dateFormat = FastDateFormat.getInstance("EEEE", Locale.ENGLISH);</code>
> but the expected value is formatted using default locale:
> <code>new SimpleDateFormat("EEEE")</code>
> Fix: use
> <code>new SimpleDateFormat("EEEE", Locale.ENGLISH)</code>
> in Displ252Test#doTest() (see attached fixed test file).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
displaytag-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel