aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2016-05-13 16:50:08 +0200
committerDuarte Meneses <duarte.meneses@sonarsource.com>2016-05-13 16:50:25 +0200
commitb99de7ef13c54fdf21dc465ae60513e5ed75ddd1 (patch)
tree2aa3da99ce0491c5610dfd6d0f7405e5ac8bb6bb /sonar-scanner-engine/src
parenta5eaf6e090b00fc1d0813e12b3e33cd2e5e3c792 (diff)
downloadsonarqube-b99de7ef13c54fdf21dc465ae60513e5ed75ddd1.tar.gz
sonarqube-b99de7ef13c54fdf21dc465ae60513e5ed75ddd1.zip
Improve quality
Diffstat (limited to 'sonar-scanner-engine/src')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java1
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/batch/repository/DefaultGlobalRepositoriesLoaderTest.java2
2 files changed, 3 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
index 5f9ddbfc56f..67b7fbda4b4 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/batch/bootstrapper/Batch.java
@@ -161,6 +161,7 @@ public final class Batch {
* @since 5.2
* @deprecated since 5.6
*/
+ @Deprecated
public Batch syncProject(String projectKey) {
checkStarted();
return this;
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/batch/repository/DefaultGlobalRepositoriesLoaderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/batch/repository/DefaultGlobalRepositoriesLoaderTest.java
index c902ee3658a..b85f3d6481c 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/batch/repository/DefaultGlobalRepositoriesLoaderTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/batch/repository/DefaultGlobalRepositoriesLoaderTest.java
@@ -20,6 +20,7 @@
package org.sonar.batch.repository;
import org.junit.Before;
+import org.junit.Test;
import org.sonar.batch.WsTestUtil;
import org.sonar.batch.bootstrap.BatchWsClient;
import org.sonar.scanner.protocol.input.GlobalRepositories;
@@ -41,6 +42,7 @@ public class DefaultGlobalRepositoriesLoaderTest {
globalRepositoryLoader = new DefaultGlobalRepositoriesLoader(wsClient);
}
+ @Test
public void test() {
globalRepositoryLoader.load();
WsTestUtil.verifyCall(wsClient, BATCH_GLOBAL_URL);