]> source.dussan.org Git - sonarqube.git/commitdiff
Fix typo when creating test DB
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Mon, 7 Jun 2021 13:41:28 +0000 (08:41 -0500)
committersonartech <sonartech@sonarsource.com>
Mon, 7 Jun 2021 20:31:13 +0000 (20:31 +0000)
server/sonar-db-core/src/testFixtures/java/org/sonar/db/CoreTestDb.java

index 0ef0c6f8c241ad9bbdba8ed9d08df8d43984fc37..70cb1a013dd5ce447473224db19045456c2bb3b0 100644 (file)
@@ -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";
       }