HHH-12688 - Duplicated Error Information Displayed in the Log

Restrict test case to H2 only
This commit is contained in:
Vlad Mihalcea 2018-06-26 12:37:28 +03:00
parent bcb71fcdd6
commit 9b106cf59c
1 changed files with 3 additions and 0 deletions

View File

@ -10,10 +10,12 @@ import java.util.Map;
import javax.persistence.PersistenceException; import javax.persistence.PersistenceException;
import org.hibernate.cfg.AvailableSettings; import org.hibernate.cfg.AvailableSettings;
import org.hibernate.dialect.H2Dialect;
import org.hibernate.engine.jdbc.spi.SqlExceptionHelper; import org.hibernate.engine.jdbc.spi.SqlExceptionHelper;
import org.hibernate.internal.CoreMessageLogger; import org.hibernate.internal.CoreMessageLogger;
import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase; import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
import org.hibernate.testing.RequiresDialect;
import org.hibernate.testing.TestForIssue; import org.hibernate.testing.TestForIssue;
import org.hibernate.testing.logger.LoggerInspectionRule; import org.hibernate.testing.logger.LoggerInspectionRule;
import org.hibernate.testing.logger.Triggerable; import org.hibernate.testing.logger.Triggerable;
@ -31,6 +33,7 @@ import static org.junit.Assert.fail;
* @author Vlad Mihalcea * @author Vlad Mihalcea
*/ */
@TestForIssue(jiraKey = "HHH-12688") @TestForIssue(jiraKey = "HHH-12688")
@RequiresDialect(H2Dialect.class)
public class UniqueConstraintBatchingTest extends BaseEntityManagerFunctionalTestCase { public class UniqueConstraintBatchingTest extends BaseEntityManagerFunctionalTestCase {
protected Class[] getAnnotatedClasses() { protected Class[] getAnnotatedClasses() {