You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2012/12/17 10:36:12 UTC

[jira] [Closed] (ISIS-255) Test in Runtime TestSupport component fails due to TimeZone

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

Dan Haywood closed ISIS-255.
----------------------------


prior to generating 1.0.0 release notes
                
> Test in Runtime TestSupport component fails due to TimeZone
> -----------------------------------------------------------
>
>                 Key: ISIS-255
>                 URL: https://issues.apache.org/jira/browse/ISIS-255
>             Project: Isis
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: isis-1.0.0
>         Environment: Win 7, Jdk 1.7, IST TimeZone
>            Reporter: Mukul Joshi
>            Assignee: Dan Haywood
>            Priority: Minor
>              Labels: test
>             Fix For: isis-1.0.0
>
>         Attachments: ObjectFixtureFilePersistorTest.java, ObjectFixtureFilePersistorTest.patch
>
>
> Error in the build of the testsupport component as follows:
>  
> loadInstance(org.apache.isis.runtimes.dflt.runtime.fixturedomainservice.ObjectFixtureFilePersistorTest): expected:<Mon Mar 08 06:30:00 IST 2010> but was:<Mon Mar 08 01:00:00 IST 2010>
> This is because my Time Zone is IST. If I set my Time Zone to GMT then the test passes
>  
> The error comes at this line in the class ObjectFixtureFilePersistorTest and method loadInstance():
> Assert.assertEquals(dateFormat.parse("08-Mar-2010 01:00 GMT"), epv.getDate());
> Here the epv.getData() returns date in IST and the code getting executed is from the SimpleEntity getDate() method

--
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