From 82a6d093abb50f689e0a9184c9b5538c50fe843d Mon Sep 17 00:00:00 2001 From: Michael Dick Date: Mon, 15 Aug 2011 20:53:37 +0000 Subject: [PATCH] Exclude test on SQLServer git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1158007 13f79535-47bb-0310-9956-ffa450edef68 --- .../openjpa/jdbc/kernel/TestNoForeignKeyViolation.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java index 6e31ebd52..45e27ef77 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/jdbc/kernel/TestNoForeignKeyViolation.java @@ -23,6 +23,7 @@ import java.util.List; import javax.persistence.EntityManager; import org.apache.openjpa.jdbc.conf.JDBCConfiguration; +import org.apache.openjpa.jdbc.sql.SQLServerDictionary; import org.apache.openjpa.persistence.test.SingleEMFTestCase; /** @@ -40,6 +41,11 @@ public class TestNoForeignKeyViolation private EntityD entityD; public void setUp() { + setUnsupportedDatabases(SQLServerDictionary.class); + if (isTestsDisabled()) { + return; + } + setUp(EntityA.class, EntityB.class, EntityC.class, EntityD.class, EntityE.class, EntityF.class, EntityG.class); createTestData();