cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r515664 - /cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java
Date Wed, 07 Mar 2007 17:58:22 GMT
Author: aadamchik
Date: Wed Mar  7 09:58:21 2007
New Revision: 515664

URL: http://svn.apache.org/viewvc?view=rev&rev=515664
Log:
Attempting to reproduce CAY-766 in JPA environment - it works! (since temp id is not exposed
to the code)
- adding extra assertion

Modified:
    cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java

Modified: cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java?view=diff&rev=515664&r1=515663&r2=515664
==============================================================================
--- cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java
(original)
+++ cayenne/main/trunk/itests/jpa-chapter3/src/test/java/org/apache/cayenne/jpa/itest/ch3/_3_5_1_LifecycleCallbackMethodsTest.java
Wed Mar  7 09:58:21 2007
@@ -95,6 +95,7 @@
         
         // Per spec, id must be availble during PostPersist
         assertEquals(e.getId(), e.getPostPersistedId());
+        assertTrue(e.getId() > 0);
 
         // external listeners
         EntityListenerState.reset();



Mime
View raw message