aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-11-18 16:45:02 -0600
committersonartech <sonartech@sonarsource.com>2021-11-20 20:03:51 +0000
commit3f9445c25962f914ccdd889c002ddd8e19b0cf89 (patch)
treeeb4f34a62b7164a71fd0bbe34d6f59621a687d8d /sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap
parentaa640be9e2b9cfa2c027ef0768940b31ebb5536c (diff)
downloadsonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.tar.gz
sonarqube-3f9445c25962f914ccdd889c002ddd8e19b0cf89.zip
Improve code quality
Diffstat (limited to 'sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
index ae65480b996..404d42faf78 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/bootstrap/PluginFilesTest.java
@@ -107,7 +107,7 @@ public class PluginFilesTest {
// get from cache on second call
result = underTest.get(plugin).get();
verifySameContent(result, tempJar);
- assertThat(server.getRequestCount()).isEqualTo(1);
+ assertThat(server.getRequestCount()).isOne();
}
@Test
@@ -125,7 +125,7 @@ public class PluginFilesTest {
// get from cache on second call
result = underTest.get(plugin).get();
verifySameContentAfterCompression(jar.file, result);
- assertThat(server.getRequestCount()).isEqualTo(1);
+ assertThat(server.getRequestCount()).isOne();
}
@Test
@@ -203,7 +203,7 @@ public class PluginFilesTest {
InstalledPlugin pluginV2 = newInstalledPlugin("foo", tempJar.md5);
result = underTest.get(pluginV2).get();
verifySameContent(result, tempJar);
- assertThat(server.getRequestCount()).isEqualTo(1);
+ assertThat(server.getRequestCount()).isOne();
// v1 still requests server and downloads v2
enqueueDownload(tempJar);