HHH-5286 Add test on scanner with intergration map being null

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@19667 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Emmanuel Bernard 2010-06-02 14:50:48 +00:00
parent 41bb177619
commit e4eed4c7e5
1 changed files with 5 additions and 0 deletions

View File

@ -98,5 +98,10 @@ public class ScannerTest extends PackagingTestCase {
emf = Persistence.createEntityManagerFactory( "defaultpar", integration );
assertTrue( CustomScanner.isUsed() );
emf.close();
CustomScanner.resetUsed();
emf = Persistence.createEntityManagerFactory( "defaultpar", null );
assertTrue( ! CustomScanner.isUsed() );
emf.close();
}
}