update swap tests

This commit is contained in:
Doug MacEachern 2004-07-16 02:27:43 +00:00
parent de952b5d81
commit d59bc650b8
1 changed files with 7 additions and 3 deletions

View File

@ -14,10 +14,14 @@ public class TestSwap extends SigarTestCase {
Swap swap = sigar.getSwap();
assertTrue(swap.getTotal() >= 0);
assertGtEqZeroTrace("Total", swap.getTotal());
assertTrue(swap.getUsed() >= 0);
assertGtEqZeroTrace("Used", swap.getUsed());
assertTrue(swap.getFree() >= 0);
assertGtEqZeroTrace("Free", swap.getFree());
assertEqualsTrace("Total-Used==Free",
swap.getTotal() - swap.getUsed(),
swap.getFree());
}
}