cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r405145 - /incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
Date Mon, 08 May 2006 19:41:56 GMT
Author: aadamchik
Date: Mon May  8 12:41:54 2006
New Revision: 405145

URL: http://svn.apache.org/viewcvs?rev=405145&view=rev
Log:
added a flag to skip schema generation during unit testing

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java?rev=405145&r1=405144&r2=405145&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/CayenneTestResources.java
Mon May  8 12:41:54 2006
@@ -91,6 +91,7 @@
     public static final String TEST_RESOURCES_DESCRIPTOR = "spring-test-resources.xml";
 
     public static final String CONNECTION_NAME_KEY = "cayenne.test.connection";
+    public static final String SKIP_SCHEMA_KEY = "cayenne.test.schema.skip";
     public static final String TEST_DIR_KEY = "cayenne.test.dir";
 
     public static final String SCHEMA_SETUP_STACK = "SchemaSetupStack";
@@ -209,6 +210,11 @@
      * Completely rebuilds test schema.
      */
     void rebuildSchema() throws Exception {
+        
+        if(System.getProperties().containsKey(SKIP_SCHEMA_KEY)) {
+            logObj.info("skipping schema generation... ");
+        }
+        
         // generate schema using a special AccessStack that
         // combines all DataMaps that require schema support
         // schema generation is done like that instead of



Mime
View raw message