HHH-7716 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"
This commit is contained in:
Esen Sagynov 2012-10-25 11:17:13 -04:00 committed by brmeyer
parent 9be3666141
commit e7af2f4b76
12 changed files with 106 additions and 0 deletions

View File

@ -24,6 +24,8 @@
package org.hibernate.test.filter.hql; package org.hibernate.test.filter.hql;
import java.util.Date; import java.util.Date;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.Session; import org.hibernate.Session;
@ -34,6 +36,11 @@ import static org.junit.Assert.assertEquals;
/** /**
* @author Steve Ebersole * @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 class JoinedFilteredBulkManipulationTest extends BaseCoreFunctionalTestCase {
public String[] getMappings() { public String[] getMappings() {
return new String[] { return new String[] {

View File

@ -106,6 +106,11 @@ import static org.junit.Assert.fail;
* *
* @author Steve * @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 { public class ASTParserLoadingTest extends BaseCoreFunctionalTestCase {
private static final Logger log = Logger.getLogger( ASTParserLoadingTest.class ); private static final Logger log = Logger.getLogger( ASTParserLoadingTest.class );

View File

@ -28,6 +28,8 @@ import java.util.Date;
import java.util.List; import java.util.List;
import junit.framework.AssertionFailedError; import junit.framework.AssertionFailedError;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.QueryException; import org.hibernate.QueryException;
@ -115,6 +117,11 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
} }
@Test @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{ public void testTempTableGenerationIsolation() throws Throwable{
Session s = openSession(); Session s = openSession();
s.beginTransaction(); s.beginTransaction();
@ -523,6 +530,11 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
} }
@Test @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() { public void testInsertWithSelectListUsingJoins() {
// this is just checking parsing and syntax... // this is just checking parsing and syntax...
Session s = openSession(); Session s = openSession();
@ -726,6 +738,11 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
} }
@Test @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() { public void testUpdateOnManyToOne() {
Session s = openSession(); Session s = openSession();
Transaction t = s.beginTransaction(); Transaction t = s.beginTransaction();
@ -1157,6 +1174,11 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
} }
@Test @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 { public void testDeleteWithMetadataWhereFragments() throws Throwable {
Session s = openSession(); Session s = openSession();
Transaction t = s.beginTransaction(); Transaction t = s.beginTransaction();

View File

@ -23,6 +23,7 @@
*/ */
package org.hibernate.test.hql; package org.hibernate.test.hql;
import org.hibernate.dialect.CUBRIDDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.HibernateException; import org.hibernate.HibernateException;
@ -139,6 +140,11 @@ public class ScrollableCollectionFetchingTest extends BaseCoreFunctionalTestCase
} }
@Test @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() { public void testScrollingJoinFetchesSingleRowResultSet() {
Session s = openSession(); Session s = openSession();
Transaction txn = s.beginTransaction(); Transaction txn = s.beginTransaction();
@ -292,6 +298,11 @@ public class ScrollableCollectionFetchingTest extends BaseCoreFunctionalTestCase
} }
@Test @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() { public void testScrollingJoinFetchesReverse() {
TestData data = new TestData(); TestData data = new TestData();
data.prepare(); data.prepare();
@ -321,6 +332,11 @@ public class ScrollableCollectionFetchingTest extends BaseCoreFunctionalTestCase
} }
@Test @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() { public void testScrollingJoinFetchesPositioning() {
TestData data = new TestData(); TestData data = new TestData();
data.prepare(); data.prepare();

View File

@ -23,6 +23,8 @@
*/ */
package org.hibernate.test.hql.joinedSubclass; package org.hibernate.test.hql.joinedSubclass;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.Session; import org.hibernate.Session;
@ -32,6 +34,11 @@ import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
/** /**
* @author Steve Ebersole * @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 { public class JoinedSubclassBulkManipTest extends BaseCoreFunctionalTestCase {
@Override @Override
protected Class<?>[] getAnnotatedClasses() { protected Class<?>[] getAnnotatedClasses() {

View File

@ -23,11 +23,18 @@
*/ */
package org.hibernate.test.immutable.entitywithmutablecollection.inverse; package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest; import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
import org.hibernate.testing.SkipForDialect;
/** /**
* @author Gail Badner * @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 class EntityWithInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() { public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationOneToManyJoin.hbm.xml" }; return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationOneToManyJoin.hbm.xml" };

View File

@ -23,6 +23,8 @@
*/ */
package org.hibernate.test.immutable.entitywithmutablecollection.inverse; package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest; import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
@ -31,6 +33,11 @@ import org.hibernate.testing.FailureExpected;
/** /**
* @author Gail Badner * @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 class VersionedEntityWithInverseOneToManyJoinFailureExpectedTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() { public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" }; return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };

View File

@ -23,7 +23,9 @@
*/ */
package org.hibernate.test.immutable.entitywithmutablecollection.inverse; package org.hibernate.test.immutable.entitywithmutablecollection.inverse;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest; import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
@ -31,6 +33,11 @@ import org.hibernate.testing.TestForIssue;
* @author Gail Badner * @author Gail Badner
*/ */
@TestForIssue( jiraKey = "HHH-4992" ) @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 class VersionedEntityWithInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() { public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" }; return new String[] { "immutable/entitywithmutablecollection/inverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };

View File

@ -23,11 +23,18 @@
*/ */
package org.hibernate.test.immutable.entitywithmutablecollection.noninverse; package org.hibernate.test.immutable.entitywithmutablecollection.noninverse;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest; import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
import org.hibernate.testing.SkipForDialect;
/** /**
* @author Gail Badner * @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 class EntityWithNonInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() { public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationOneToManyJoin.hbm.xml" }; return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationOneToManyJoin.hbm.xml" };

View File

@ -23,11 +23,18 @@
*/ */
package org.hibernate.test.immutable.entitywithmutablecollection.noninverse; package org.hibernate.test.immutable.entitywithmutablecollection.noninverse;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest; import org.hibernate.test.immutable.entitywithmutablecollection.AbstractEntityWithOneToManyTest;
import org.hibernate.testing.SkipForDialect;
/** /**
* @author Gail Badner * @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 class VersionedEntityWithNonInverseOneToManyJoinTest extends AbstractEntityWithOneToManyTest {
public String[] getMappings() { public String[] getMappings() {
return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationVersionedOneToManyJoin.hbm.xml" }; return new String[] { "immutable/entitywithmutablecollection/noninverse/ContractVariationVersionedOneToManyJoin.hbm.xml" };

View File

@ -23,6 +23,8 @@
*/ */
package org.hibernate.test.onetomany; package org.hibernate.test.onetomany;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.Session; import org.hibernate.Session;
@ -41,6 +43,11 @@ public class OneToManyTest extends BaseCoreFunctionalTestCase {
@SuppressWarnings( {"unchecked", "UnusedAssignment"}) @SuppressWarnings( {"unchecked", "UnusedAssignment"})
@Test @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() { public void testOneToManyLinkTable() {
Session s = openSession(); Session s = openSession();
Transaction t = s.beginTransaction(); Transaction t = s.beginTransaction();

View File

@ -28,6 +28,8 @@ import java.util.HashSet;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
import org.hibernate.dialect.CUBRIDDialect;
import org.hibernate.testing.SkipForDialect;
import org.junit.Test; import org.junit.Test;
import org.hibernate.Session; import org.hibernate.Session;
@ -39,6 +41,11 @@ import static org.junit.Assert.assertEquals;
/** /**
* @author Steve Ebersole * @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 class JoinedSubclassFilterTest extends BaseCoreFunctionalTestCase {
public final String[] getMappings() { public final String[] getMappings() {
return new String[] { "subclassfilter/joined-subclass.hbm.xml" }; return new String[] { "subclassfilter/joined-subclass.hbm.xml" };