aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-protocol
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2020-12-11 17:20:41 +0100
committersonartech <sonartech@sonarsource.com>2020-12-14 20:07:14 +0000
commitffcea568c79640227b2fd9c562f642b9d087ea10 (patch)
tree6b0c16201bdc6308048744fea48f4e4a9667fd5d /sonar-scanner-protocol
parent4e07979ccca556d5f05a1be05b88f0bd85ff3f66 (diff)
downloadsonarqube-ffcea568c79640227b2fd9c562f642b9d087ea10.tar.gz
sonarqube-ffcea568c79640227b2fd9c562f642b9d087ea10.zip
fix code smells
Diffstat (limited to 'sonar-scanner-protocol')
-rw-r--r--sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepositoryTest.java4
-rw-r--r--sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/SingleProjectRepositoryTest.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepositoryTest.java b/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepositoryTest.java
index 656fb421fb2..1648a6315fd 100644
--- a/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepositoryTest.java
+++ b/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/MultiModuleProjectRepositoryTest.java
@@ -54,7 +54,7 @@ public class MultiModuleProjectRepositoryTest {
repository.addFileDataToModule("module1", null, fileData);
- assertThat(repository.repositoriesByModule()).hasSize(0);
+ assertThat(repository.repositoriesByModule()).isEmpty();
}
@Test
@@ -63,6 +63,6 @@ public class MultiModuleProjectRepositoryTest {
repository.addFileDataToModule("module2", "/Abc.java", fileData);
- assertThat(repository.repositoriesByModule()).hasSize(0);
+ assertThat(repository.repositoriesByModule()).isEmpty();
}
}
diff --git a/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/SingleProjectRepositoryTest.java b/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/SingleProjectRepositoryTest.java
index dc34d9f8589..6c5f5819f16 100644
--- a/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/SingleProjectRepositoryTest.java
+++ b/sonar-scanner-protocol/src/test/java/org/sonar/scanner/protocol/input/SingleProjectRepositoryTest.java
@@ -50,7 +50,7 @@ public class SingleProjectRepositoryTest {
repository.addFileData(null, fileData);
- assertThat(repository.fileData()).hasSize(0);
+ assertThat(repository.fileData()).isEmpty();
}
@Test
@@ -59,6 +59,6 @@ public class SingleProjectRepositoryTest {
repository.addFileData("/Abc.java", fileData);
- assertThat(repository.fileData()).hasSize(0);
+ assertThat(repository.fileData()).isEmpty();
}
}