diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-27 22:04:23 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-01-27 22:04:23 +0100 |
commit | 5593132d32277a2111ecceb8cd31abb404a00d0a (patch) | |
tree | 249a6defc1beca441ebabe3d330db334429ceb42 /sonar-application | |
parent | 280b575063fdd8f0d30e54a8c5eaad09fce30906 (diff) | |
download | sonarqube-5593132d32277a2111ecceb8cd31abb404a00d0a.tar.gz sonarqube-5593132d32277a2111ecceb8cd31abb404a00d0a.zip |
Fix test
Diffstat (limited to 'sonar-application')
-rw-r--r-- | sonar-application/src/test/java/org/sonar/application/JdbcSettingsTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sonar-application/src/test/java/org/sonar/application/JdbcSettingsTest.java b/sonar-application/src/test/java/org/sonar/application/JdbcSettingsTest.java index e5dec849289..c68e3e1d465 100644 --- a/sonar-application/src/test/java/org/sonar/application/JdbcSettingsTest.java +++ b/sonar-application/src/test/java/org/sonar/application/JdbcSettingsTest.java @@ -94,10 +94,13 @@ public class JdbcSettingsTest { @Test public void check_h2() throws Exception { File home = temp.newFolder(); + File driverFile = new File(home, "lib/jdbc/h2/h2.jar"); + FileUtils.touch(driverFile); + Props props = new Props(new Properties()); props.set("sonar.jdbc.url", "jdbc:h2:tcp://localhost:9092/sonar"); settings.checkAndComplete(home, props); - assertThat(props.value(ProcessConstants.JDBC_DRIVER_PATH)).isNull(); + assertThat(props.nonNullValueAsFile(ProcessConstants.JDBC_DRIVER_PATH)).isEqualTo(driverFile); } @Test |