aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-process
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-process')
-rw-r--r--server/sonar-process/src/test/java/org/sonar/process/systeminfo/JvmStateSectionTest.java5
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)");
}
}