openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r888560 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java
Date Tue, 08 Dec 2009 20:28:00 GMT
Author: ppoddar
Date: Tue Dec  8 20:28:00 2009
New Revision: 888560

URL: http://svn.apache.org/viewvc?rev=888560&view=rev
Log:
Tests run only on Derby because uses database specific DDL

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java?rev=888560&r1=888559&r2=888560&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/identity/TestCompundIdWithNull.java
Tue Dec  8 20:28:00 2009
@@ -25,6 +25,8 @@
 
 import org.apache.openjpa.persistence.OpenJPAEntityManager;
 import org.apache.openjpa.persistence.OpenJPAPersistence;
+import org.apache.openjpa.persistence.test.AllowFailure;
+import org.apache.openjpa.persistence.test.DatabasePlatform;
 import org.apache.openjpa.persistence.test.SingleEMFTestCase;
 
 /**
@@ -41,6 +43,9 @@
  * @author Pinaki Poddar
  * @author Michael Vorburger
  */
+// Because we use DDL specific to Derby
+@DatabasePlatform("org.apache.derby.jdbc.EmbeddedDriver")
+
 public class TestCompundIdWithNull extends SingleEMFTestCase {
     private static boolean tablesCreated = false;
 	public void setUp() throws Exception {
@@ -48,6 +53,7 @@
 	    super.setUp(SimpleCompoundIdTestEntity.class, ComplexCompoundIdTestEntity.class, TypeEntity.class);
 	    if (!tablesCreated) {
 	        createTables(emf.createEntityManager());
+	        tablesCreated = true;
 	    }
 	    
 	}



Mime
View raw message