test reuse

This commit is contained in:
Doug MacEachern 2004-06-22 01:30:42 +00:00
parent e964155cd6
commit dbcc74c199
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package net.hyperic.sigar.test;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.Cpu;
public class TestCpu extends SigarTestCase {
@ -21,7 +22,7 @@ public class TestCpu extends SigarTestCase {
}
public void testCreate() throws Exception {
Sigar sigar = new Sigar();
SigarProxy sigar = Sigar.getInstance(); //test reuse
Cpu cpu = sigar.getCpu();