db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r328080 - /incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
Date Mon, 24 Oct 2005 15:06:34 GMT
Author: clr
Date: Mon Oct 24 08:06:29 2005
New Revision: 328080

URL: http://svn.apache.org/viewcvs?rev=328080&view=rev
Log:
JDO-186 fixed attach test so detached instance has lifecycle listener

Modified:
    incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java

Modified: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java?rev=328080&r1=328079&r2=328080&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
(original)
+++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/InstanceLifecycleListenerAttach.java
Mon Oct 24 08:06:29 2005
@@ -94,12 +94,13 @@
     public void testAttach() {
 
         // set up the persistent instance
-        PC pc = new PC(listener);
+        PC pc = new PC();
 
         getPM();
         pm.currentTransaction().begin();
         pm.makePersistent(pc);
         PC detached = (PC)pm.detachCopy(pc);
+        detached.listener = listener;
         pm.currentTransaction().commit();
         pm.currentTransaction().begin();
         listener.setExpectedSource(detached);



Mime
View raw message