mirror of https://github.com/apache/openjpa.git
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:
parent
45bc22baa3
commit
92af878a15
|
@ -25,6 +25,8 @@ import javax.persistence.EntityManager;
|
||||||
|
|
||||||
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
import org.apache.openjpa.persistence.OpenJPAEntityManager;
|
||||||
import org.apache.openjpa.persistence.OpenJPAPersistence;
|
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;
|
import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,6 +43,9 @@ import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
||||||
* @author Pinaki Poddar
|
* @author Pinaki Poddar
|
||||||
* @author Michael Vorburger
|
* @author Michael Vorburger
|
||||||
*/
|
*/
|
||||||
|
// Because we use DDL specific to Derby
|
||||||
|
@DatabasePlatform("org.apache.derby.jdbc.EmbeddedDriver")
|
||||||
|
|
||||||
public class TestCompundIdWithNull extends SingleEMFTestCase {
|
public class TestCompundIdWithNull extends SingleEMFTestCase {
|
||||||
private static boolean tablesCreated = false;
|
private static boolean tablesCreated = false;
|
||||||
public void setUp() throws Exception {
|
public void setUp() throws Exception {
|
||||||
|
@ -48,6 +53,7 @@ public class TestCompundIdWithNull extends SingleEMFTestCase {
|
||||||
super.setUp(SimpleCompoundIdTestEntity.class, ComplexCompoundIdTestEntity.class, TypeEntity.class);
|
super.setUp(SimpleCompoundIdTestEntity.class, ComplexCompoundIdTestEntity.class, TypeEntity.class);
|
||||||
if (!tablesCreated) {
|
if (!tablesCreated) {
|
||||||
createTables(emf.createEntityManager());
|
createTables(emf.createEntityManager());
|
||||||
|
tablesCreated = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue