Tests run only on Derby because uses database specific DDL

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@888560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2009-12-08 20:28:00 +00:00
parent 45bc22baa3
commit 92af878a15
1 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,8 @@ import javax.persistence.EntityManager;
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 @@ import org.apache.openjpa.persistence.test.SingleEMFTestCase;
* @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 @@ public class TestCompundIdWithNull extends SingleEMFTestCase {
super.setUp(SimpleCompoundIdTestEntity.class, ComplexCompoundIdTestEntity.class, TypeEntity.class);
if (!tablesCreated) {
createTables(emf.createEntityManager());
tablesCreated = true;
}
}