summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorSabine Heider2013-03-01 06:54:20 (EST)
committer tware2013-03-01 11:23:43 (EST)
commit50a2e589deb1113c7f075e9ebe8220630c0c801a (patch)
tree6bd50c375938a0a46c0e02a677fba967c6ac4a6a
parent7b444e248c6e846986f9529d302709f0a7fc4194 (diff)
downloadeclipselink.runtime-50a2e589deb1113c7f075e9ebe8220630c0c801a.zip
eclipselink.runtime-50a2e589deb1113c7f075e9ebe8220630c0c801a.tar.gz
eclipselink.runtime-50a2e589deb1113c7f075e9ebe8220630c0c801a.tar.bz2
Fix skip mechanism in test TestSequence.testAllocSize
Fix the skip mechanism in test TestSequence.testAllocSize such that the test is skippen on the server and for the specified databases. Signed-off-by: Sabine Heider <sabine.heider@sap.com>
-rw-r--r--jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/tests/wdf/jpa1/generator/TestSequence.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/tests/wdf/jpa1/generator/TestSequence.java b/jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/tests/wdf/jpa1/generator/TestSequence.java
index 73dcb4f..2bc4ff6 100644
--- a/jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/tests/wdf/jpa1/generator/TestSequence.java
+++ b/jpa/eclipselink.jpa.wdf.test/src/org/eclipse/persistence/testing/tests/wdf/jpa1/generator/TestSequence.java
@@ -15,18 +15,16 @@ package org.eclipse.persistence.testing.tests.wdf.jpa1.generator;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
-import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import junit.framework.Assert;
import org.eclipse.persistence.platform.database.DerbyPlatform;
import org.eclipse.persistence.platform.database.MySQLPlatform;
-import org.eclipse.persistence.platform.database.OraclePlatform;
import org.eclipse.persistence.platform.database.SQLServerPlatform;
import org.eclipse.persistence.testing.framework.wdf.JPAEnvironment;
+import org.eclipse.persistence.testing.framework.wdf.ServerInfoHolder;
import org.eclipse.persistence.testing.framework.wdf.Skip;
-import org.eclipse.persistence.testing.framework.wdf.ToBeInvestigated;
import org.eclipse.persistence.testing.models.wdf.jpa1.fancy.Animal;
import org.eclipse.persistence.testing.models.wdf.jpa1.fancy.Element;
import org.eclipse.persistence.testing.models.wdf.jpa1.fancy.Plant;
@@ -79,8 +77,13 @@ public class TestSequence extends JPA1Base {
}
@Test
- @Skip(server=true, databases = {MySQLPlatform.class, SQLServerPlatform.class, DerbyPlatform.class})
+ @Skip(databases = {MySQLPlatform.class, SQLServerPlatform.class, DerbyPlatform.class})
public void testAllocSize() {
+ if (ServerInfoHolder.isOnServer()) {
+ // skip the test
+ return;
+ }
+
JPAEnvironment env = getEnvironment();
EntityManager em = env.getEntityManager();