diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-12-10 11:30:28 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-12-14 20:07:14 +0000 |
commit | 55beb4250989be32c957a61b80321f6d2c4528a6 (patch) | |
tree | 045a86ebc13394d3de85ec6ec7b8b1ad20af18b5 /server/sonar-process | |
parent | 7bef61b574f3e80fb04b6d426b8332b0e73ffadd (diff) | |
download | sonarqube-55beb4250989be32c957a61b80321f6d2c4528a6.tar.gz sonarqube-55beb4250989be32c957a61b80321f6d2c4528a6.zip |
Fix AssertJ assertions
Diffstat (limited to 'server/sonar-process')
-rw-r--r-- | server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java b/server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java index db8ab605e18..3e81b2a7a39 100644 --- a/server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java +++ b/server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java @@ -54,6 +54,9 @@ public class JvmStateSectionTest { JvmStateSection underTest = new JvmStateSection(PROCESS_NAME); ProtobufSystemInfo.Section section = underTest.toProtobuf(memoryBean); - assertThat(section.getAttributesList()).extracting("key").doesNotContain("Heap Committed (MB)"); + assertThat(section.getAttributesList()) + .extracting("key") + .isNotEmpty() + .doesNotContain("Heap Committed (MB)"); } } |