aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2017-12-07 11:54:37 +0100
committerDuarte Meneses <duarte.meneses@sonarsource.com>2017-12-07 15:28:02 +0100
commit181170cd55d3f0bd930e895cc0871c20643ac91a (patch)
tree36c966e12ae975db9e57245ff7df767105562ee7 /tests
parentcb662321dd388237e5095992ddb81a8160bc3d32 (diff)
downloadsonarqube-181170cd55d3f0bd930e895cc0871c20643ac91a.tar.gz
sonarqube-181170cd55d3f0bd930e895cc0871c20643ac91a.zip
SONAR-10168 Log downloading of plugins in debug
Diffstat (limited to 'tests')
-rw-r--r--tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java b/tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java
index 15b20555741..cd47342301b 100644
--- a/tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java
+++ b/tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java
@@ -254,13 +254,12 @@ public class ScannerTest {
int cachedFiles = FileUtils.listFiles(cache, new String[]{"jar"}, true).size();
assertThat(cachedFiles).isGreaterThan(5);
assertThat(result.getLogs()).contains("User cache: " + cache.getAbsolutePath());
- assertThat(result.getLogs()).contains("Download sonar-xoo-plugin-");
result = scan("shared/xoo-sample",
"sonar.userHome", userHome.getAbsolutePath());
- assertThat(cachedFiles).isEqualTo(cachedFiles);
+ int cachedFiles2 = FileUtils.listFiles(cache, new String[]{"jar"}, true).size();
+ assertThat(cachedFiles).isEqualTo(cachedFiles2);
assertThat(result.getLogs()).contains("User cache: " + cache.getAbsolutePath());
- assertThat(result.getLogs()).doesNotContain("Download sonar-xoo-plugin-");
}
@Test