File tree 1 file changed +3
-3
lines changed
spring-boot-project/spring-boot/src/test/java/org/springframework/boot/info
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2012-2024 the original author or authors.
2
+ * Copyright 2012-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -43,13 +43,13 @@ void processInfoIsAvailable() {
43
43
void memoryInfoIsAvailable () {
44
44
ProcessInfo processInfo = new ProcessInfo ();
45
45
MemoryUsageInfo heapUsageInfo = processInfo .getMemory ().getHeap ();
46
- MemoryUsageInfo nonHeapUsageInfo = processInfo .getMemory ().getNonHeap ();
47
46
assertThat (heapUsageInfo .getInit ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getMax ());
48
47
assertThat (heapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommitted ());
49
48
assertThat (heapUsageInfo .getCommitted ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getMax ());
50
49
assertThat (heapUsageInfo .getMax ()).isPositive ();
50
+ MemoryUsageInfo nonHeapUsageInfo = processInfo .getMemory ().getNonHeap ();
51
51
assertThat (nonHeapUsageInfo .getInit ()).isPositive ();
52
- assertThat (nonHeapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (heapUsageInfo .getCommitted ());
52
+ assertThat (nonHeapUsageInfo .getUsed ()).isPositive ().isLessThanOrEqualTo (nonHeapUsageInfo .getCommitted ());
53
53
assertThat (nonHeapUsageInfo .getCommitted ()).isPositive ();
54
54
assertThat (nonHeapUsageInfo .getMax ()).isEqualTo (-1 );
55
55
}
You can’t perform that action at this time.
0 commit comments