diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2021-06-07 08:41:28 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-06-07 20:31:13 +0000 |
commit | 5e319a7fb92e3ede94ff0d16ef38ea766e3fc3bd (patch) | |
tree | a215beb5897f65ae79281760676ef4c9edb4c057 /server/sonar-db-core | |
parent | 9d4d5b0a9f8dd38403f48fad508f9fa438999834 (diff) | |
download | sonarqube-5e319a7fb92e3ede94ff0d16ef38ea766e3fc3bd.tar.gz sonarqube-5e319a7fb92e3ede94ff0d16ef38ea766e3fc3bd.zip |
Fix typo when creating test DB
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r-- | server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java b/server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java index 0ef0c6f8c24..70cb1a013dd 100644 --- a/server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java +++ b/server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java @@ -28,6 +28,7 @@ import java.util.function.Consumer; import java.util.function.Function; import javax.annotation.Nullable; import javax.sql.DataSource; +import org.apache.commons.codec.digest.DigestUtils; import org.junit.AssumptionViolatedException; import org.sonar.api.config.internal.MapSettings; import org.sonar.api.config.internal.Settings; @@ -86,7 +87,7 @@ class CoreTestDb implements TestDb { throw new AssumptionViolatedException("This test is intended to be run on H2 only"); } - String name = "\"h2Tests-\" + (schemaPath == null ? \"empty\" : DigestUtils.md5Hex(schemaPath))"; + String name = "h2Tests-" + (schemaPath == null ? "empty" : DigestUtils.md5Hex(schemaPath)); if (!databaseToUpper) { name = name + ";DATABASE_TO_UPPER=FALSE"; } |