diff options
Diffstat (limited to 'sonar-scanner-protocol')
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(); } } |