other changes

This commit is contained in:
Andrea Boriero 2016-05-06 17:31:58 +01:00 committed by Steve Ebersole
parent 37fc401da8
commit b77626ddbd
1 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ public class PackagedEntityManagerTest extends PackagingTestCase {
emf = Persistence.createEntityManagerFactory( "excludehbmpar", new HashMap() );
}
catch ( PersistenceException e ) {
emf.close();
Throwable nested = e.getCause();
if ( nested == null ) {
throw e;
@ -224,6 +225,7 @@ public class PackagedEntityManagerTest extends PackagingTestCase {
throw e;
}
fail( "Try to process hbm file: " + e.getMessage() );
}
EntityManager em = emf.createEntityManager();
Caipirinha s = new Caipirinha( "Strong" );