HHH-9665 - Allow EntityManagerFactoryImpl to be unwrapped only into public interfaces/classes

This commit is contained in:
Steve Ebersole 2015-05-14 12:12:06 -05:00
parent a2c3c74251
commit ae0b5f8577
1 changed files with 0 additions and 8 deletions

View File

@ -107,14 +107,6 @@ public class EntityManagerFactoryUnwrapTest extends BaseEntityManagerFunctionalT
@Test
public void testEntityManagerCanBeUnwrappedToEntityManagerFactoryImpl() {
try {
entityManagerFactory.unwrap( EntityManagerFactoryImpl.class );
fail( "It should not be possible to unwrap to an internal type." );
}
catch ( PersistenceException e ) {
// ignore
}
EntityManagerFactoryImpl entityManager = entityManagerFactory.unwrap( EntityManagerFactoryImpl.class );
assertNotNull(
"Unwrapping to EntityManagerFactoryImpl should be ok",