diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-11-23 17:15:25 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2017-11-24 11:07:11 +0100 |
commit | f13ee89943334e4e770fd343efc5880f7a2f5896 (patch) | |
tree | 123933be22c904e72a4e84fcf2ead7c5d86fd9c9 /server/sonar-process | |
parent | 08a8732ee8d235b1e28d499e35ac5b1bd37df3cb (diff) | |
download | sonarqube-f13ee89943334e4e770fd343efc5880f7a2f5896.tar.gz sonarqube-f13ee89943334e4e770fd343efc5880f7a2f5896.zip |
fix unstable UT SharedHealthStateImplTest
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/test/java/org/sonar/process/LoggingRule.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/LoggingRule.java b/server/sonar-process/src/test/java/org/sonar/process/LoggingRule.java index 00e8662f36a..3246e0c4527 100644 --- a/server/sonar-process/src/test/java/org/sonar/process/LoggingRule.java +++ b/server/sonar-process/src/test/java/org/sonar/process/LoggingRule.java @@ -58,6 +58,7 @@ public class LoggingRule extends ExternalResource { public List<String> getLogs() { return TestLogbackAppender.events.stream() + .filter(e -> e.getLoggerName().equals(loggerClass.getName())) .map(LoggingEvent::getFormattedMessage) .collect(Collectors.toList()); } @@ -72,12 +73,14 @@ public class LoggingRule extends ExternalResource { public boolean hasLog(Level level, String message) { return TestLogbackAppender.events.stream() + .filter(e -> e.getLoggerName().equals(loggerClass.getName())) .filter(e -> e.getLevel().levelStr.equals(level.name())) .anyMatch(e -> e.getFormattedMessage().equals(message)); } public boolean hasLog(String message) { return TestLogbackAppender.events.stream() + .filter(e -> e.getLoggerName().equals(loggerClass.getName())) .anyMatch(e -> e.getFormattedMessage().equals(message)); } } |