HHH-8930 Make the rebuildSessionFactory() method be more aggressive

about closing

Conflicts:
	hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
This commit is contained in:
Thomas Jones-Low 2014-01-22 12:07:24 -05:00 committed by Brett Meyer
parent af428a1273
commit 9fa9c734da
1 changed files with 3 additions and 0 deletions

View File

@ -401,7 +401,10 @@ public abstract class BaseCoreFunctionalTestCase extends BaseUnitTestCase {
return;
}
sessionFactory.close();
sessionFactory = null;
configuration = null;
serviceRegistry.destroy();
serviceRegistry = null;
serviceRegistry = buildServiceRegistry( configuration );
if ( isMetadataUsed ) {