cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r427872 - in /incubator/cayenne/main/trunk/core/cayenne-jpa/src/test: java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java resources/xml-samples/orm-schema-headers-full.xml
Date Wed, 02 Aug 2006 03:20:03 GMT
Author: aadamchik
Date: Tue Aug  1 20:20:03 2006
New Revision: 427872

URL: http://svn.apache.org/viewvc?rev=427872&view=rev
Log:
adding persistence unit defaults assertions

Modified:
    incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java
    incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/resources/xml-samples/orm-schema-headers-full.xml

Modified: incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java?rev=427872&r1=427871&r2=427872&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/java/org/apache/cayenne/jpa/conf/XMLMappingAssertion.java
Tue Aug  1 20:20:03 2006
@@ -44,6 +44,8 @@
     protected void assertUnitMetadata(JpaPersistenceUnitMetadata md) {
         assertNotNull(md);
         assertNotNull(md.getPersistenceUnitDefaults());
+        assertEquals("dschema", md.getPersistenceUnitDefaults().getSchema());
+        assertEquals("dcatalog", md.getPersistenceUnitDefaults().getCatalog());
         assertEntityListeners(md.getPersistenceUnitDefaults().getEntityListeners());
     }
 

Modified: incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/resources/xml-samples/orm-schema-headers-full.xml
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/resources/xml-samples/orm-schema-headers-full.xml?rev=427872&r1=427871&r2=427872&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/resources/xml-samples/orm-schema-headers-full.xml
(original)
+++ incubator/cayenne/main/trunk/core/cayenne-jpa/src/test/resources/xml-samples/orm-schema-headers-full.xml
Tue Aug  1 20:20:03 2006
@@ -30,6 +30,8 @@
 	
 	<persistence-unit-metadata>
 		<persistence-unit-defaults>
+			<schema>dschema</schema>
+			<catalog>dcatalog</catalog>
 			<entity-listeners>
 				<entity-listener class="org.apache.cayenne.jpa.entity.MockEntityListener1">
 					<pre-persist method-name="prePersist"/>



Mime
View raw message