From df3286e52cfff678f98e91c53bdecb45aa61461d Mon Sep 17 00:00:00 2001 From: buczekp <buczekp> Date: Tue, 12 Oct 2010 13:14:59 +0000 Subject: [PATCH] [LMS-1832] missing commit SVN: 18266 --- .../SimpleDatabaseConfigurationContext.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/SimpleDatabaseConfigurationContext.java b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/SimpleDatabaseConfigurationContext.java index 854a0e50b40..80888183d8f 100644 --- a/dbmigration/source/java/ch/systemsx/cisd/dbmigration/SimpleDatabaseConfigurationContext.java +++ b/dbmigration/source/java/ch/systemsx/cisd/dbmigration/SimpleDatabaseConfigurationContext.java @@ -65,6 +65,16 @@ public class SimpleDatabaseConfigurationContext implements DisposableBean private final String password; + // for testing + public SimpleDatabaseConfigurationContext(String driverClassName, String url, String username, + String password) + { + this.driverClassName = driverClassName; + this.url = url; + this.username = username; + this.password = password; + } + public SimpleDatabaseConfigurationContext(Properties properties) { this.driverClassName = PropertyUtils.getMandatoryProperty(properties, DRIVER_KEY); -- GitLab