cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r572002 - in /cayenne/main/trunk/itests/jpa-chapter6: .classpath src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java
Date Sun, 02 Sep 2007 15:35:23 GMT
Author: aadamchik
Date: Sun Sep  2 08:35:23 2007
New Revision: 572002

URL: http://svn.apache.org/viewvc?rev=572002&view=rev
Log:
CAY-757 JPA enhancer should enhance undeclared classes

Modified:
    cayenne/main/trunk/itests/jpa-chapter6/.classpath
    cayenne/main/trunk/itests/jpa-chapter6/src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java

Modified: cayenne/main/trunk/itests/jpa-chapter6/.classpath
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/itests/jpa-chapter6/.classpath?rev=572002&r1=572001&r2=572002&view=diff
==============================================================================
--- cayenne/main/trunk/itests/jpa-chapter6/.classpath (original)
+++ cayenne/main/trunk/itests/jpa-chapter6/.classpath Sun Sep  2 08:35:23 2007
@@ -2,7 +2,7 @@
 <classpath>
 	<classpathentry kind="src" path="src/main/java"/>
 	<classpathentry kind="src" path="src/test/java"/>
-	<classpathentry excluding="**" output="src/main/resources" kind="src" path="src/main/resources"/>
+	<classpathentry kind="src" path="src/main/resources"/>
 	<classpathentry excluding="**" output="src/test/resources" kind="src" path="src/test/resources"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>

Modified: cayenne/main/trunk/itests/jpa-chapter6/src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/itests/jpa-chapter6/src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java?rev=572002&r1=572001&r2=572002&view=diff
==============================================================================
--- cayenne/main/trunk/itests/jpa-chapter6/src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java
(original)
+++ cayenne/main/trunk/itests/jpa-chapter6/src/test/java/org/apache/cayenne/jpa/itest/ch6/_6_1_2_6_PersistentClassSourcesTest.java
Sun Sep  2 08:35:23 2007
@@ -1,16 +1,18 @@
 package org.apache.cayenne.jpa.itest.ch6;
 
 import org.apache.cayenne.itest.jpa.EntityManagerCase;
+import org.apache.cayenne.jpa.itest.ch6.entity.UndeclaredEntity1;
 
 public class _6_1_2_6_PersistentClassSourcesTest extends EntityManagerCase {
 
-	public void testLoadUndeclared() throws Exception {
+	public void testLoadImplicitFromUnitRoot() throws Exception {
+
 		getDbHelper().deleteAll("UndeclaredEntity1");
 
-//		UndeclaredEntity1 e = new UndeclaredEntity1();
-//		getEntityManager().persist(e);
-//		getEntityManager().getTransaction().commit();
-//
-//		assertEquals(1, getDbHelper().getRowCount("UndeclaredEntity1"));
+		UndeclaredEntity1 e = new UndeclaredEntity1();
+		getEntityManager().persist(e);
+		getEntityManager().getTransaction().commit();
+
+		assertEquals(1, getDbHelper().getRowCount("UndeclaredEntity1"));
 	}
 }



Mime
View raw message