Skip to content

Commit

Permalink
Fixed issue reported by sonar: use isEmpty() instead of hasSize(0)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtoison committed Sep 29, 2023
1 parent 1d5dc70 commit d2e21c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void profileImport(String profilePath, int expectedSize) {
Collection<BuiltInActiveRule> 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);
}

Expand Down

0 comments on commit d2e21c1

Please sign in to comment.