< prev index next >

test/serviceability/tmtools/jstat/GcCapacityTest.java

Print this page
rev 12309 : Rev 01

*** 43,53 **** // Run once and get the results asserting that they are reasonable JstatGcCapacityResults measurement1 = jstatGcTool.measure(); measurement1.assertConsistency(); // Provoke a gc and verify the changed values ! GcProvoker gcProvoker = GcProvoker.createGcProvoker(); gcProvoker.provokeGc(); JstatGcCapacityResults measurement2 = jstatGcTool.measure(); measurement2.assertConsistency(); // Assert that the GC events count has increased --- 43,53 ---- // Run once and get the results asserting that they are reasonable JstatGcCapacityResults measurement1 = jstatGcTool.measure(); measurement1.assertConsistency(); // Provoke a gc and verify the changed values ! GcProvoker gcProvoker = new GcProvoker(); gcProvoker.provokeGc(); JstatGcCapacityResults measurement2 = jstatGcTool.measure(); measurement2.assertConsistency(); // Assert that the GC events count has increased
< prev index next >