From 181170cd55d3f0bd930e895cc0871c20643ac91a Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 7 Dec 2017 11:54:37 +0100 Subject: SONAR-10168 Log downloading of plugins in debug --- tests/src/test/java/org/sonarqube/tests/analysis/ScannerTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3