Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Skip these tests for CUBRID dialect as temp tables aren't supported yet.

Raises: "HibernateException: cannot doAfterTransactionCompletion
multi-table deletes using dialect not supporting temp tables"
  • Loading branch information...
commit 005cae5240d9dad501de7e6bb44291833b1c3d70 1 parent b644792
@kadishmal kadishmal authored
Showing with 106 additions and 0 deletions.
  1. +7 −0 hibernate-core/src/test/java/org/hibernate/test/filter/hql/JoinedFilteredBulkManipulationTest.java
  2. +5 −0 hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
  3. +22 −0 hibernate-core/src/test/java/org/hibernate/test/hql/BulkManipulationTest.java
  4. +16 −0 hibernate-core/src/test/java/org/hibernate/test/hql/ScrollableCollectionFetchingTest.java
  5. +7 −0 hibernate-core/src/test/java/org/hibernate/test/hql/joinedSubclass/JoinedSubclassBulkManipTest.java
  6. +7 −0 ...va/org/hibernate/test/immutable/entitywithmutablecollection/inverse/EntityWithInverseOneToManyJoinTest.java
  7. +7 −0 ...mutable/entitywithmutablecollection/inverse/VersionedEntityWithInverseOneToManyJoinFailureExpectedTest.java
  8. +7 −0 ...bernate/test/immutable/entitywithmutablecollection/inverse/VersionedEntityWithInverseOneToManyJoinTest.java
  9. +7 −0 .../hibernate/test/immutable/entitywithmutablecollection/noninverse/EntityWithNonInverseOneToManyJoinTest.java
  10. +7 −0 ...e/test/immutable/entitywithmutablecollection/noninverse/VersionedEntityWithNonInverseOneToManyJoinTest.java
  11. +7 −0 hibernate-core/src/test/java/org/hibernate/test/onetomany/OneToManyTest.java
  12. +7 −0 hibernate-core/src/test/java/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java
View
7 ...-core/src/test/java/org/hibernate/test/filter/hql/JoinedFilteredBulkManipulationTest.java
@@ -24,6 +24,8 @@
package org.hibernate.test.filter.hql;
import java.util.Date;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.Session;
@@ -34,6 +36,11 @@
/**
* @author Steve Ebersole
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class JoinedFilteredBulkManipulationTest extends BaseCoreFunctionalTestCase {
public String[] getMappings() {
return new String[] {
View
5 hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
@@ -106,6 +106,11 @@
*
* @author Steve
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
private static final Logger log = Logger.getLogger( ASTParserLoadingTest.class );
View
22 hibernate-core/src/test/java/org/hibernate/test/hql/BulkManipulationTest.java
@@ -28,6 +28,8 @@
import java.util.List;
import junit.framework.AssertionFailedError;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.QueryException;
@@ -115,6 +117,11 @@ public void testUpdateNonExistentEntity() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testTempTableGenerationIsolation() throws Throwable{
Session s = openSession();
s.beginTransaction();
@@ -523,6 +530,11 @@ public void testInsertWithAssignedCompositeId() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testInsertWithSelectListUsingJoins() {
// this is just checking parsing and syntax...
Session s = openSession();
@@ -726,6 +738,11 @@ public void testUpdateOnComponent() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testUpdateOnManyToOne() {
Session s = openSession();
Transaction t = s.beginTransaction();
@@ -1157,6 +1174,11 @@ public void testDeleteUnionSubclassLeafSubclass() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testDeleteWithMetadataWhereFragments() throws Throwable {
Session s = openSession();
Transaction t = s.beginTransaction();
View
16 hibernate-core/src/test/java/org/hibernate/test/hql/ScrollableCollectionFetchingTest.java
@@ -23,6 +23,7 @@
*/
package org.hibernate.test.hql;
+import org.hibernate.dialect.CUBRIDDialect;
import org.junit.Test;
import org.hibernate.HibernateException;
@@ -139,6 +140,11 @@ public void testScrollingJoinFetchesEmptyResultSet() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testScrollingJoinFetchesSingleRowResultSet() {
Session s = openSession();
Transaction txn = s.beginTransaction();
@@ -292,6 +298,11 @@ public void testScrollingJoinFetchesForward() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testScrollingJoinFetchesReverse() {
TestData data = new TestData();
data.prepare();
@@ -321,6 +332,11 @@ public void testScrollingJoinFetchesReverse() {
}
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testScrollingJoinFetchesPositioning() {
TestData data = new TestData();
data.prepare();
View
7 ...core/src/test/java/org/hibernate/test/hql/joinedSubclass/JoinedSubclassBulkManipTest.java
@@ -23,6 +23,8 @@
*/
package org.hibernate.test.hql.joinedSubclass;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.Session;
@@ -32,6 +34,11 @@
/**
* @author Steve Ebersole
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class JoinedSubclassBulkManipTest extends BaseCoreFunctionalTestCase {
@Override
protected Class<?>[] getAnnotatedClasses() {
View
7 ...est/immutable/entitywithmutablecollection/inverse/EntityWithInverseOneToManyJoinTest.java
@@ -23,11 +23,18 @@
*/
package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
+import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
+import org.hibernate.testing.SkipForDialect;
/**
* @author Gail Badner
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class EntityWithInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationOneToManyJoin.hbm.xml" };
View
7 ...mutablecollection/inverse/VersionedEntityWithInverseOneToManyJoinFailureExpectedTest.java
@@ -23,6 +23,8 @@
*/
package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
@@ -31,6 +33,11 @@
/**
* @author Gail Badner
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class VersionedEntityWithInverseOneToManyJoinFailureExpectedTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };
View
7 ...able/entitywithmutablecollection/inverse/VersionedEntityWithInverseOneToManyJoinTest.java
@@ -23,7 +23,9 @@
*/
package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
+import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
+import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue;
@@ -31,6 +33,11 @@
* @author Gail Badner
*/
@TestForIssue( jiraKey = "HHH-4992" )
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class VersionedEntityWithInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };
View
7 ...mutable/entitywithmutablecollection/noninverse/EntityWithNonInverseOneToManyJoinTest.java
@@ -23,11 +23,18 @@
*/
package org.hibernate.test.immutable.entitywithmutablecollection.noninverse;
+import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
+import org.hibernate.testing.SkipForDialect;
/**
* @author Gail Badner
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class EntityWithNonInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationOneToManyJoin.hbm.xml" };
View
7 ...ntitywithmutablecollection/noninverse/VersionedEntityWithNonInverseOneToManyJoinTest.java
@@ -23,11 +23,18 @@
*/
package org.hibernate.test.immutable.entitywithmutablecollection.noninverse;
+import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
+import org.hibernate.testing.SkipForDialect;
/**
* @author Gail Badner
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class VersionedEntityWithNonInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };
View
7 hibernate-core/src/test/java/org/hibernate/test/onetomany/OneToManyTest.java
@@ -23,6 +23,8 @@
*/
package org.hibernate.test.onetomany;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.Session;
@@ -41,6 +43,11 @@
@SuppressWarnings( {"unchecked", "UnusedAssignment"})
@Test
+ @SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+ )
public void testOneToManyLinkTable() {
Session s = openSession();
Transaction t = s.beginTransaction();
View
7 hibernate-core/src/test/java/org/hibernate/test/subclassfilter/JoinedSubclassFilterTest.java
@@ -28,6 +28,8 @@
import java.util.Iterator;
import java.util.List;
+import org.hibernate.dialect.CUBRIDDialect;
+import org.hibernate.testing.SkipForDialect;
import org.junit.Test;
import org.hibernate.Session;
@@ -39,6 +41,11 @@
/**
* @author Steve Ebersole
*/
+@SkipForDialect(
+ value = CUBRIDDialect.class,
+ comment = "As of verion 8.4.1 CUBRID doesn't support temporary tables. This test fails with" +
+ "HibernateException: cannot doAfterTransactionCompletion multi-table deletes using dialect not supporting temp tables"
+)
public class JoinedSubclassFilterTest extends BaseCoreFunctionalTestCase {
public final String[] getMappings() {
return new String[] { "subclassfilter/joined-subclass.hbm.xml" };
Please sign in to comment.
Something went wrong with that request. Please try again.