aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-06-05 18:48:25 +0200
committerSonarTech <sonartech@sonarsource.com>2018-06-12 20:21:02 +0200
commit2e762529ec81a7ced23e0739f8fd43a35a37ffa5 (patch)
treef230fcb485e7abefe17acf9cb60a0caa8c2142ff /server/sonar-db-core
parent197cdc3b558cbad675572e2ce0005b0062c84940 (diff)
downloadsonarqube-2e762529ec81a7ced23e0739f8fd43a35a37ffa5.tar.gz
sonarqube-2e762529ec81a7ced23e0739f8fd43a35a37ffa5.zip
SONARCLOUD-56 support SonarCloud in billing integration tests
Diffstat (limited to 'server/sonar-db-core')
-rw-r--r--server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java b/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
index 25ec3a62482..803a5effdfe 100644
--- a/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
+++ b/server/sonar-db-core/src/test/java/org/sonar/db/CreateDb.java
@@ -22,6 +22,7 @@ package org.sonar.db;
import com.sonar.orchestrator.Orchestrator;
import com.sonar.orchestrator.OrchestratorBuilder;
import com.sonar.orchestrator.locator.FileLocation;
+import com.sonar.orchestrator.locator.Location;
import org.apache.commons.lang.StringUtils;
import java.io.File;
@@ -35,8 +36,8 @@ public class CreateDb {
builder.setEdition(COMMUNITY);
String version = System.getProperty("sonar.runtimeVersion");
if (StringUtils.isEmpty(version)) {
- File zip = FileLocation.byWildcardMavenFilename(new File("../../sonar-application/build/distributions"), "sonar-application-*.zip").getFile();
- builder.setZipFile(zip);
+ Location zip = FileLocation.byWildcardMavenFilename(new File("../../sonar-application/build/distributions"), "sonar-application-*.zip");
+ builder.setZipLocation(zip);
} else {
builder.setSonarVersion(version);
}