Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
sabineheider committed Mar 1, 2013
1 parent 2da292c commit 50f6f04
Showing 1 changed file with 7 additions and 4 deletions.
Expand Up @@ -15,18 +15,16 @@

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;
Expand Down Expand Up @@ -79,8 +77,13 @@ public void testPersistFlock() {
}

@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();

Expand Down

0 comments on commit 50f6f04

Please sign in to comment.