add assertions
This commit is contained in:
parent
565c48cca3
commit
51a205920f
|
@ -37,8 +37,14 @@ public class TestMem extends SigarTestCase {
|
||||||
assertGtZeroTrace("Used", mem.getUsed());
|
assertGtZeroTrace("Used", mem.getUsed());
|
||||||
|
|
||||||
traceln("UsedPercent=" + mem.getUsedPercent());
|
traceln("UsedPercent=" + mem.getUsedPercent());
|
||||||
|
assertGtZeroTrace("(long)UsedPercent", (long)mem.getUsedPercent());
|
||||||
|
|
||||||
|
assertTrue(mem.getUsedPercent() <= 100);
|
||||||
|
|
||||||
traceln("FreePercent=" + mem.getFreePercent());
|
traceln("FreePercent=" + mem.getFreePercent());
|
||||||
|
assertGtEqZeroTrace("(long)FreePercent", (long)mem.getFreePercent());
|
||||||
|
|
||||||
|
assertTrue(mem.getFreePercent() < 100);
|
||||||
|
|
||||||
assertGtZeroTrace("Free", mem.getFree());
|
assertGtZeroTrace("Free", mem.getFree());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue