Permalink
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...
1 parent 58dbcf2 commit 1b2436c56f1b580f27bd548883b66a795046f4dd @kadishmal kadishmal committed Jul 23, 2012
@@ -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[] {
@@ -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 );
@@ -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;
@@ -102,6 +104,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();
@@ -510,6 +517,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();
@@ -713,6 +725,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();
@@ -1144,6 +1161,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();
@@ -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();
@@ -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() {
@@ -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" };
@@ -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" };
@@ -23,14 +23,21 @@
*/
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;
/**
* @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" };
@@ -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" };
@@ -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" };
@@ -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();
@@ -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" };

0 comments on commit 1b2436c

Please sign in to comment.