diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-12-15 14:30:58 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-12-16 14:35:28 +0100 |
commit | 1af4105f69b467eca5233c164752923fce021884 (patch) | |
tree | c9041594210d8655e75c54df67d6a0acf398bef2 /server/sonar-server | |
parent | e1e54db29f0cc1f9d54adec00e7a2ab092102a12 (diff) | |
download | sonarqube-1af4105f69b467eca5233c164752923fce021884.tar.gz sonarqube-1af4105f69b467eca5233c164752923fce021884.zip |
SONAR-8445 add a DAO for SCHEMA_MIGRATIONS
and remove direct usages of MyBatis mapper
Diffstat (limited to 'server/sonar-server')
-rw-r--r-- | server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/DatabaseMonitorTest.java | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/DatabaseMonitorTest.java b/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/DatabaseMonitorTest.java index 5941af2a2ba..9fcd6f1e6ff 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/DatabaseMonitorTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/platform/monitoring/DatabaseMonitorTest.java @@ -20,7 +20,6 @@ package org.sonar.server.platform.monitoring; import java.util.Map; -import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.sonar.api.utils.System2; @@ -34,13 +33,7 @@ public class DatabaseMonitorTest { @Rule public DbTester dbTester = DbTester.create(System2.INSTANCE); - DatabaseMonitor underTest; - - @Before - public void setUp() { - DatabaseVersion dbVersion = new DatabaseVersion(dbTester.myBatis()); - underTest = new DatabaseMonitor(dbVersion, dbTester.getDbClient()); - } + private DatabaseMonitor underTest = new DatabaseMonitor(new DatabaseVersion(dbTester.getDbClient()), dbTester.getDbClient()); @Test public void name_is_not_empty() { |