diff --git a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/BaseEntityManagerFunctionalTestCase.java b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/BaseEntityManagerFunctionalTestCase.java index c2bc79f6e9..87c8d80b62 100644 --- a/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/BaseEntityManagerFunctionalTestCase.java +++ b/hibernate-entitymanager/src/test/java/org/hibernate/ejb/test/BaseEntityManagerFunctionalTestCase.java @@ -139,7 +139,7 @@ public abstract class BaseEntityManagerFunctionalTestCase extends BaseUnitTestCa } protected Map getConfig() { - Map config = loadProperties(); + Map config = new HashMap( ); ArrayList classes = new ArrayList(); classes.addAll( Arrays.asList( getAnnotatedClasses() ) ); @@ -163,27 +163,6 @@ public abstract class BaseEntityManagerFunctionalTestCase extends BaseUnitTestCa protected void addConfigOptions(Map options) { } - private Properties loadProperties() { - Properties props = new Properties(); - InputStream stream = Persistence.class.getResourceAsStream( "/hibernate.properties" ); - if ( stream != null ) { - try { - props.load( stream ); - } - catch ( Exception e ) { - throw new RuntimeException( "could not load hibernate.properties" ); - } - finally { - try { - stream.close(); - } - catch ( IOException ignored ) { - } - } - } - return props; - } - protected static final Class[] NO_CLASSES = new Class[0]; protected Class[] getAnnotatedClasses() {