diff --git a/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java b/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java index ff7610be..655cbf33 100644 --- a/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java +++ b/src/test/java/org/sonar/plugins/findbugs/FindbugsProfileImporterTest.java @@ -195,7 +195,7 @@ void profileImport(String profilePath, int expectedSize) { Collection results = profile.rules(); assertThat(results).hasSize(expectedSize); - assertThat(logTester.getLogs(Level.ERROR)).hasSize(0); + assertThat(logTester.getLogs(Level.ERROR)).isEmpty(); assertThat(logTester.getLogs(Level.WARN)).hasSize(1); }