You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by ht...@apache.org on 2012/05/22 18:59:17 UTC
svn commit: r1341562 -
/openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java
Author: hthomann
Date: Tue May 22 16:59:17 2012
New Revision: 1341562
URL: http://svn.apache.org/viewvc?rev=1341562&view=rev
Log:
OPENJPA-1376: Removed test method testGetIdGeneratorSeqGen from TestNativeSeqGenerator as it is not applicable to 1.2.x without OPENJPA-2069
Modified:
openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java
Modified: openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java?rev=1341562&r1=1341561&r2=1341562&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java (original)
+++ openjpa/branches/1.2.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/generationtype/TestNativeSeqGenerator.java Tue May 22 16:59:17 2012
@@ -52,19 +52,6 @@ public class TestNativeSeqGenerator exte
entityE2 = new EntityE2("e name");
}
- public void testGetIdGeneratorSeqGen() {
- if (supportsNativeSequence){
- createEntityE2();
- em.getTransaction().begin();
- em.persist(entityE2);
- em.getTransaction().commit();
- int genId = entityE2.getId();
- int nextId = (int)((Long)em.getIdGenerator(EntityE2.class).next()).longValue();
- assertTrue("Next value should depend on previous genid", nextId >= genId + 1);
- em.close();
- }
- }
-
/**
* Asserts native sequence generator allocates values in memory
* and requests sequence values from database only when necessary.