File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
spring-boot-project/spring-boot/src
main/java/org/springframework/boot/info
test/java/org/springframework/boot/info Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public long getUsed() {
126
126
return this .memoryUsage .getUsed ();
127
127
}
128
128
129
- public long getCommited () {
129
+ public long getCommitted () {
130
130
return this .memoryUsage .getCommitted ();
131
131
}
132
132
Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ void memoryInfoIsAvailable() {
45
45
MemoryUsageInfo heapUsageInfo = processInfo .getMemory ().getHeap ();
46
46
MemoryUsageInfo nonHeapUsageInfo = processInfo .getMemory ().getNonHeap ();
47
47
assertThat (heapUsageInfo .getInit ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getMax ());
48
- assertThat (heapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommited ());
49
- assertThat (heapUsageInfo .getCommited ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getMax ());
48
+ assertThat (heapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommitted ());
49
+ assertThat (heapUsageInfo .getCommitted ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getMax ());
50
50
assertThat (heapUsageInfo .getMax ()).isPositive ();
51
51
assertThat (nonHeapUsageInfo .getInit ()).isPositive ();
52
- assertThat (nonHeapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommited ());
53
- assertThat (nonHeapUsageInfo .getCommited ()).isPositive ();
52
+ assertThat (nonHeapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommitted ());
53
+ assertThat (nonHeapUsageInfo .getCommitted ()).isPositive ();
54
54
assertThat (nonHeapUsageInfo .getMax ()).isEqualTo (-1 );
55
55
}
56
56
You can’t perform that action at this time.
0 commit comments