[jira] Commented: (JDO-144) Incorrect value for public Collection CollectionOfDate12
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache JDO Project > [jira] Commented: (JDO-144) Incorrect value for public Collection CollectionOfDate12




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    [jira] Commented: (JDO-144) Incorrect value for public Collection CollectionOfDate12  
Andy Jefferson (JIRA)


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-24-05 10:45 PM

[ [url]http://issues.apache.org/jira/browse/JDO-144?page=comments#action_12330371[/
url] ]

Andy Jefferson commented on JDO-144:
------------------------------------

Any chance of something slightly more informative from the test than just "I
ncorrect value" ? The relationship tests went to the trouble of saying where
 the differences are. All JUnit asserts I put in JPOX unit tests say what th
e expected value is and wha
t the actual value is so we can spot obvious issues like timezone problems e
tc. Since we're dealing with a java.util.Date here and the Derby column type
 used in the schema is DATE, is it storing anything more than just the typic
al SQL DATE (day, month, ye
ar) ?, whereas the java.util.Date will clearly also store hours/mins/secs an
d the millisecs. Printing out what the differences are would help resolve th
at.

JDO2 spec section 18.5 states that the default "jdbc-type" for a java.util.D
ate will be TIMESTAMP, yet the test uses DATE and doesn't specify it in the 
"orm" file.

> Incorrect value for public Collection CollectionOfDate12
> --------------------------------------------------------
>
>          Key: JDO-144
>          URL: http://issues.apache.org/jira/browse/JDO-144
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Michelle Caisse

>
> [java] 1) test(org.apache.jdo.tck.models.fieldtypes.TestCollectionColl
ections)junit.framework.AssertionFailedError: Assertion A6.4.3-33 (TestColle
ctionCollections) failed:
> [java] Incorrect value for public Collection CollectionOfDate12
> [java]      at org.apache.jdo.tck.JDO_Test.fail(JDO_Test.java:546)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionColl
ections.checkValues(TestCollectionCollections.java:146)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionColl
ections.runTest(TestCollectionCollections.java:104)
> [java]      at org.apache.jdo.tck.models.fieldtypes.TestCollectionColl
ections.test(TestCollectionCollections.java:69)
> [java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Met
hod)
> [java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMetho
dAccessorImpl.java:39)
> [java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegat
ingMethodAccessorImpl.java:25)
> [java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:204)
> [java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTest
Runner.java:115)
> [java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.ja
va:93)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secur...nistrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:11 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register