[jira] Updated: (JDO-382) Add test for selecting and updating an
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] Updated: (JDO-382) Add test for selecting and updating an




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

    [jira] Updated: (JDO-382) Add test for selecting and updating an  
Michelle Caisse (JIRA)


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


 
06-19-06 06:11 PM

[ http://issues.apache.org/jira/browse/JDO-382?page=all ]

Michelle Caisse updated JDO-382:
--------------------------------

Attachment: JDO-382.patch

See attached patch for this issue.  I have added a method to test changing a
 projected embedded field and another method that tests changing a projected
 Date field. Only these methods are new, but the entire file is in the diff 
because I changed tabs to s
paces and broke long lines.

JPOX passes the new test for embedded fields but fails on a Date field:

[java] 1) testDateField(org.apache.jdo.tck.models.embedded.SecondClassOb
jectsTrackTheirChanges)junit.framework.AssertionFailedError:
[java] Expected Company instance not to be dirty; actual state is {
persistent, transactional, dirty}
[java] Expected projected field value is Fri Jun 16 04:29:21 PDT 2006; a
ctual value is Wed Dec 31 16:02:03 PST 1969
[java]
[java]      at org.apache.jdo.tck.JDO_Test.failOnError(JDO_Test.java:105
2)
[java]      at org.apache.jdo.tck.models.embedded.SecondClassObjectsTrac
kTheirChanges. testDateField(SecondClassObjectsTrackThe
irChanges.java:233)
[java]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
d)
[java]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
ccessorImpl.java:39)
[java]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
gMethodAccessorImpl.java:25)
[java]      at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:237)
[java]      at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRu
nner.java:107)
[java]      at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRu
nner.java:147)
[java]      at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRun
ner.java:122)

> Add test for selecting and updating an embedded field
> -----------------------------------------------------
>
>          Key: JDO-382
>          URL: http://issues.apache.org/jira/browse/JDO-382
>      Project: JDO
>         Type: Test

>   Components: tck20
>     Versions: JDO 2 final
>     Reporter: Craig Russell
>     Assignee: Michelle Caisse
>      Fix For: JDO 2 maintenance release 1
>  Attachments: JDO-382.patch
>
> If you select an embedded field and change it, we need to verify that the 
object has changed.
> Currently no test exists for this case.
> Select Address from Employee where name.startsWith('Michael')
> address.zip = "94040";
> tx.commit();
> verify that address.zip has been changed in the database.

--
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 12:42 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