HHH-12666 Only run the tests with H2
We don't need to run them with all our dialects: we just need to check the mechanism works correctly. At least TransactionExceptionHandlingTest fails with MariaDB so better be safe.
This commit is contained in:
parent
0075225ab7
commit
0091169f9d
|
@ -6,6 +6,8 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.exceptionhandling;
|
package org.hibernate.test.exceptionhandling;
|
||||||
|
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
|
@ -15,13 +17,13 @@ import javax.persistence.ManyToOne;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.fail;
|
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class ConstraintViolationExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class ConstraintViolationExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public ConstraintViolationExceptionHandlingTest(BootstrapMethod bootstrapMethod,
|
public ConstraintViolationExceptionHandlingTest(BootstrapMethod bootstrapMethod,
|
||||||
|
|
|
@ -6,6 +6,8 @@
|
||||||
*/
|
*/
|
||||||
package org.hibernate.test.exceptionhandling;
|
package org.hibernate.test.exceptionhandling;
|
||||||
|
|
||||||
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
import javax.persistence.CascadeType;
|
import javax.persistence.CascadeType;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
|
@ -16,13 +18,13 @@ import javax.persistence.PrimaryKeyJoinColumn;
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.annotations.GenericGenerator;
|
import org.hibernate.annotations.GenericGenerator;
|
||||||
import org.hibernate.annotations.Parameter;
|
import org.hibernate.annotations.Parameter;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.fail;
|
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class IdentifierGenerationExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class IdentifierGenerationExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public IdentifierGenerationExceptionHandlingTest(
|
public IdentifierGenerationExceptionHandlingTest(
|
||||||
|
|
|
@ -13,10 +13,13 @@ import javax.persistence.Id;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class QuerySyntaxExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class QuerySyntaxExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public QuerySyntaxExceptionHandlingTest(
|
public QuerySyntaxExceptionHandlingTest(
|
||||||
|
|
|
@ -14,10 +14,13 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.Version;
|
import javax.persistence.Version;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class StateObjectStateExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class StateObjectStateExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public StateObjectStateExceptionHandlingTest(
|
public StateObjectStateExceptionHandlingTest(
|
||||||
|
|
|
@ -12,8 +12,9 @@ import javax.persistence.Id;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
import org.hibernate.engine.spi.SessionImplementor;
|
import org.hibernate.engine.spi.SessionImplementor;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -21,6 +22,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class TransactionExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class TransactionExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public TransactionExceptionHandlingTest(
|
public TransactionExceptionHandlingTest(
|
||||||
|
|
|
@ -13,13 +13,15 @@ import javax.persistence.ManyToOne;
|
||||||
|
|
||||||
import org.hibernate.Session;
|
import org.hibernate.Session;
|
||||||
import org.hibernate.Transaction;
|
import org.hibernate.Transaction;
|
||||||
|
import org.hibernate.dialect.H2Dialect;
|
||||||
|
import org.hibernate.testing.RequiresDialect;
|
||||||
import org.hibernate.testing.TestForIssue;
|
import org.hibernate.testing.TestForIssue;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
@TestForIssue(jiraKey = "HHH-12666")
|
@TestForIssue(jiraKey = "HHH-12666")
|
||||||
|
@RequiresDialect(H2Dialect.class)
|
||||||
public class TransientObjectExceptionHandlingTest extends BaseExceptionHandlingTest {
|
public class TransientObjectExceptionHandlingTest extends BaseExceptionHandlingTest {
|
||||||
|
|
||||||
public TransientObjectExceptionHandlingTest(BootstrapMethod bootstrapMethod,
|
public TransientObjectExceptionHandlingTest(BootstrapMethod bootstrapMethod,
|
||||||
|
|
Loading…
Reference in New Issue