|
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 | voidmemoryInfoIsAvailable() { |
44 | 44 | ProcessInfoprocessInfo =newProcessInfo(); |
45 | 45 | MemoryUsageInfoheapUsageInfo =processInfo.getMemory().getHeap(); |
46 | | -MemoryUsageInfononHeapUsageInfo =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 | +MemoryUsageInfononHeapUsageInfo =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 | } |
|