From decac7f6864af3afaabdbbded39a6d3e1de7f356 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Thu, 14 Dec 2017 14:35:54 +0000 Subject: [PATCH] HHH-12147 - Fix tests --- .../test/schemaupdate/idgenerator/SequenceGeneratorsTest.java | 4 +++- .../test/schemaupdate/idgenerator/TableGeneratorsTest.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/SequenceGeneratorsTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/SequenceGeneratorsTest.java index 5908a17eab..236e7ff984 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/SequenceGeneratorsTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/SequenceGeneratorsTest.java @@ -30,6 +30,8 @@ import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; import org.hibernate.testing.RequiresDialect; +import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase; +import org.hibernate.testing.junit4.BaseUnitTestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -41,7 +43,7 @@ import static org.junit.Assert.assertThat; * @author Andrea Boriero */ @RequiresDialect(H2Dialect.class) -public class SequenceGeneratorsTest { +public class SequenceGeneratorsTest extends BaseUnitTestCase { private StandardServiceRegistry ssr; private File output; private MetadataImplementor metadata; diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/TableGeneratorsTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/TableGeneratorsTest.java index bb0abd77d2..8195b899e6 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/TableGeneratorsTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/idgenerator/TableGeneratorsTest.java @@ -30,6 +30,7 @@ import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.schema.TargetType; import org.hibernate.testing.RequiresDialect; +import org.hibernate.testing.junit4.BaseUnitTestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -40,7 +41,7 @@ import static org.junit.Assert.assertTrue; * @author Andrea Boriero */ @RequiresDialect(H2Dialect.class) -public class TableGeneratorsTest { +public class TableGeneratorsTest extends BaseUnitTestCase { private StandardServiceRegistry ssr; private File output;