Fix typo in "committed" in ProcessInfo
See gh-42471
This commit is contained in:
committed by
Stéphane Nicoll
parent
bc5a718cfa
commit
7a27e6794e
@@ -126,7 +126,7 @@ public class ProcessInfo {
|
||||
return this.memoryUsage.getUsed();
|
||||
}
|
||||
|
||||
public long getCommited() {
|
||||
public long getCommitted() {
|
||||
return this.memoryUsage.getCommitted();
|
||||
}
|
||||
|
||||
|
||||
@@ -45,12 +45,12 @@ class ProcessInfoTests {
|
||||
MemoryUsageInfo heapUsageInfo = processInfo.getMemory().getHeap();
|
||||
MemoryUsageInfo nonHeapUsageInfo = processInfo.getMemory().getNonHeap();
|
||||
assertThat(heapUsageInfo.getInit()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
|
||||
assertThat(heapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommited());
|
||||
assertThat(heapUsageInfo.getCommited()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
|
||||
assertThat(heapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommitted());
|
||||
assertThat(heapUsageInfo.getCommitted()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getMax());
|
||||
assertThat(heapUsageInfo.getMax()).isPositive();
|
||||
assertThat(nonHeapUsageInfo.getInit()).isPositive();
|
||||
assertThat(nonHeapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommited());
|
||||
assertThat(nonHeapUsageInfo.getCommited()).isPositive();
|
||||
assertThat(nonHeapUsageInfo.getUsed()).isPositive().isLessThanOrEqualTo(heapUsageInfo.getCommitted());
|
||||
assertThat(nonHeapUsageInfo.getCommitted()).isPositive();
|
||||
assertThat(nonHeapUsageInfo.getMax()).isEqualTo(-1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user