diff --git a/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/CurrentTenantResolverMultiTenancyTest.java b/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/CurrentTenantResolverMultiTenancyTest.java index 7b09b8f942..0818625a35 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/CurrentTenantResolverMultiTenancyTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/CurrentTenantResolverMultiTenancyTest.java @@ -23,14 +23,12 @@ */ package org.hibernate.test.multitenancy.schema; -import org.junit.Assert; - import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration; import org.hibernate.context.spi.CurrentTenantIdentifierResolver; -import org.hibernate.testing.FailureExpectedWithNewMetamodel; import org.hibernate.testing.TestForIssue; +import org.junit.Assert; /** * SessionFactory has to use the {@link CurrentTenantIdentifierResolver} when @@ -40,7 +38,6 @@ import org.hibernate.testing.TestForIssue; * @author Steve Ebersole */ @TestForIssue(jiraKey = "HHH-7306") -@FailureExpectedWithNewMetamodel(message = "Needs updated to remove Configuration uses.") public class CurrentTenantResolverMultiTenancyTest extends SchemaBasedMultiTenancyTest { private TestCurrentTenantIdentifierResolver currentTenantResolver = new TestCurrentTenantIdentifierResolver(); diff --git a/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/SchemaBasedMultiTenancyTest.java b/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/SchemaBasedMultiTenancyTest.java index df18428222..5537f5e663 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/SchemaBasedMultiTenancyTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/multitenancy/schema/SchemaBasedMultiTenancyTest.java @@ -26,11 +26,6 @@ package org.hibernate.test.multitenancy.schema; import java.sql.Connection; import java.sql.SQLException; -import org.junit.After; -import org.junit.Assert; -import org.junit.Before; -import org.junit.Test; - import org.hibernate.HibernateException; import org.hibernate.MultiTenancyStrategy; import org.hibernate.Session; @@ -44,17 +39,19 @@ import org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.mapping.RootClass; import org.hibernate.service.spi.ServiceRegistryImplementor; -import org.hibernate.testing.FailureExpectedWithNewMetamodel; import org.hibernate.testing.cache.CachingRegionFactory; import org.hibernate.testing.env.ConnectionProviderBuilder; import org.hibernate.testing.junit4.BaseUnitTestCase; import org.hibernate.tool.hbm2ddl.ConnectionHelper; import org.hibernate.tool.hbm2ddl.SchemaExport; +import org.junit.After; +import org.junit.Assert; +import org.junit.Before; +import org.junit.Test; /** * @author Steve Ebersole */ -@FailureExpectedWithNewMetamodel(message = "Needs updated to remove Configuration uses.") public class SchemaBasedMultiTenancyTest extends BaseUnitTestCase { private DriverManagerConnectionProviderImpl acmeProvider; private DriverManagerConnectionProviderImpl jbossProvider; diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/MigrationTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/MigrationTest.java index 87413106c7..8fdbc3ef07 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/MigrationTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/MigrationTest.java @@ -30,13 +30,12 @@ import org.hibernate.cfg.Configuration; import org.hibernate.cfg.Environment; import org.hibernate.engine.jdbc.spi.JdbcServices; import org.hibernate.service.ServiceRegistry; -import org.hibernate.testing.FailureExpectedWithNewMetamodel; import org.hibernate.testing.ServiceRegistryBuilder; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseUnitTestCase; -import org.hibernate.tool.hbm2ddl.UniqueConstraintSchemaUpdateStrategy; import org.hibernate.tool.hbm2ddl.SchemaExport; import org.hibernate.tool.hbm2ddl.SchemaUpdate; +import org.hibernate.tool.hbm2ddl.UniqueConstraintSchemaUpdateStrategy; import org.junit.After; import org.junit.Before; import org.junit.Test; @@ -45,7 +44,6 @@ import org.junit.Test; * @author Max Rydahl Andersen * @author Brett Meyer */ -@FailureExpectedWithNewMetamodel(message = "Needs updated to remove Configuration uses.") public class MigrationTest extends BaseUnitTestCase { private ServiceRegistry serviceRegistry; diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportManagedConnectionTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportManagedConnectionTest.java index efbf52a567..5ec0f4e4f6 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportManagedConnectionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportManagedConnectionTest.java @@ -24,13 +24,11 @@ package org.hibernate.test.schemaupdate; import org.hibernate.cfg.Configuration; -import org.hibernate.testing.FailureExpectedWithNewMetamodel; import org.hibernate.tool.hbm2ddl.SchemaExport; /** * @author Gail Badner */ -@FailureExpectedWithNewMetamodel(message = "Needs updated to remove Configuration uses.") public class SchemaExportManagedConnectionTest extends SchemaExportTest { @Override protected SchemaExport createSchemaExport(Configuration cfg) { diff --git a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportSuppliedConnectionTest.java b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportSuppliedConnectionTest.java index f2af877451..99f20b8db5 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportSuppliedConnectionTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/schemaupdate/SchemaExportSuppliedConnectionTest.java @@ -24,13 +24,11 @@ package org.hibernate.test.schemaupdate; import org.hibernate.cfg.Configuration; -import org.hibernate.testing.FailureExpectedWithNewMetamodel; import org.hibernate.tool.hbm2ddl.SchemaExport; /** * @author Gail Badner */ -@FailureExpectedWithNewMetamodel(message = "Needs updated to remove Configuration uses.") public class SchemaExportSuppliedConnectionTest extends SchemaExportTest { @Override