From e4eed4c7e5e3da008459436b4ce44a8973eb29ee Mon Sep 17 00:00:00 2001 From: Emmanuel Bernard Date: Wed, 2 Jun 2010 14:50:48 +0000 Subject: [PATCH] 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 --- .../java/org/hibernate/ejb/test/packaging/ScannerTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java b/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java index 643d533fe5..4b77e378ac 100644 --- a/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java +++ b/entitymanager/src/test/java/org/hibernate/ejb/test/packaging/ScannerTest.java @@ -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(); } }