
eu.drus.jpa.unit.sql.dbunit.DbUnitConfigurationLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jpa-unit-rdbms Show documentation
Show all versions of jpa-unit-rdbms Show documentation
Makes JPA Unit support SQL databases
The newest version!
package eu.drus.jpa.unit.sql.dbunit;
import java.net.URL;
import java.util.Properties;
public final class DbUnitConfigurationLoader {
private DbUnitConfigurationLoader() {}
public static Properties loadConfiguration(final URL resourceUrl) {
final Properties properties = new Properties();
try {
if(resourceUrl != null) {
properties.load(resourceUrl.openStream());
}
} catch(final Exception e) {
// ignore
}
return properties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy