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

Michelle Caisse commented on JDO-720:
-------------------------------------

I get error info in trunk/tck/target/logs/<timestamp>/app-jdoql-junit.txt and 
.../dsid-jdoql-junit.txt (not to be confused with ...jdoql1-junit.txt).

There was 1 failure:
1) 
testGetDate(org.apache.jdo.tck.query.jdoql.methods.SupportedDateMethods)junit.framework.AssertionFailedError:
 Assertion A14.6.2-60 (SupportedDateMethods) failed: 
Wrong query result: 
query: SELECT FROM org.apache.jdo.tck.pc.company.Person WHERE 
birthdate.getDate() == 10 
expected: java.util.ArrayList of size 1
[FullTimeEmployee(1, emp1Last, emp1First, born 9/Jun/1970, phone 
{work=123456-1, home=1111}, hired 31/Dec/1998, weeklyhours 40.0, $20000.0)]
got:      java.util.ArrayList of size 0
[]
        at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:719)
        at org.apache.jdo.tck.query.QueryTest.queryFailed(QueryTest.java:518)
        at 
org.apache.jdo.tck.query.QueryTest.checkQueryResultWithoutOrder(QueryTest.java:548)
        at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1293)
        at org.apache.jdo.tck.query.QueryTest.execute(QueryTest.java:1133)
        at 
org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1069)
        at 
org.apache.jdo.tck.query.QueryTest.executeAPIQuery(QueryTest.java:1049)
        at 
org.apache.jdo.tck.query.jdoql.methods.SupportedDateMethods.executeQuery(SupportedDateMethods.java:143)
        at 
org.apache.jdo.tck.query.jdoql.methods.SupportedDateMethods.testGetDate(SupportedDateMethods.java:118)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:284)
        at 
org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
        at 
org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
        at 
org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
FAILURES!!!
                
> Possible time zone issue in SupportedDateMethods
> ------------------------------------------------
>
>                 Key: JDO-720
>                 URL: https://issues.apache.org/jira/browse/JDO-720
>             Project: JDO
>          Issue Type: Bug
>          Components: tck
>    Affects Versions: JDO 3 update 1 (3.0.1)
>            Reporter: Michael Bouschen
>             Fix For: JDO 3 maintenance release 1 (3.1)
>
>         Attachments: JDO-720.patch
>
>
> The TCK query test SupportedDateMethods fails when running a Date.getDate 
> query: the query result is empty where it should include an employee 
> instacne. 
> Please note, the failure occurs when running the test in California and 
> Arizona, but not in Europe. 
> Looks like the problem is in the company model reader creating a date in the 
> America/New_York time zone that is actually yesterday in other time zones, so 
> the tests fail.

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

Reply via email to