]> source.dussan.org Git - sonarqube.git/commit
SONAR-12487 improve coverage of Telemetry classes
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 8 Oct 2019 07:48:04 +0000 (09:48 +0200)
committerSonarTech <sonartech@sonarsource.com>
Tue, 8 Oct 2019 18:21:04 +0000 (20:21 +0200)
commit359ff819e5d61d93c173bdfb3104f98aa9e289f0
tree61de8a49c02dde6dc9773d6418fceb899e2fb454
parent06da0b99aa10c300d4bed7bcc712f66d83e9be74
SONAR-12487 improve coverage of Telemetry classes

makes tests more unique by moving much logic out TelemetryDaemonTest which will make this test faster (less tests) and more reliable (simpler)
as this test was troublesom because if was testing multithreaded code
14 files changed:
server/sonar-server-common/src/main/java/org/sonar/server/measure/index/ProjectMeasuresStatistics.java
server/sonar-server-common/src/main/java/org/sonar/server/telemetry/TelemetryData.java
server/sonar-server-common/src/main/java/org/sonar/server/telemetry/TelemetryDataJsonWriter.java
server/sonar-server-common/src/test/java/org/sonar/server/telemetry/TelemetryDataJsonWriterTest.java [new file with mode: 0644]
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/AbstractSystemInfoWriter.java
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/ClusterSystemInfoWriter.java
server/sonar-webserver-core/src/main/java/org/sonar/server/platform/StandaloneSystemInfoWriter.java
server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDaemon.java
server/sonar-webserver-core/src/main/java/org/sonar/server/telemetry/TelemetryDataLoaderImpl.java
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/ClusterSystemInfoWriterTest.java
server/sonar-webserver-core/src/test/java/org/sonar/server/platform/StandaloneSystemInfoWriterTest.java
server/sonar-webserver-core/src/test/java/org/sonar/server/telemetry/TelemetryDaemonTest.java
server/sonar-webserver-core/src/test/java/org/sonar/server/telemetry/TelemetryDataLoaderImplTest.java [new file with mode: 0644]
server/sonar-webserver/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java