diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcMem.java b/bindings/java/src/net/hyperic/sigar/test/TestProcMem.java index 6c4e777f..101b2c0f 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcMem.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcMem.java @@ -1,18 +1,16 @@ package net.hyperic.sigar.test; -import junit.framework.TestCase; - import net.hyperic.sigar.Sigar; import net.hyperic.sigar.ProcMem; -public class TestProcMem extends TestCase { +public class TestProcMem extends SigarTestCase { public TestProcMem(String name) { super(name); } public void testCreate() throws Exception { - Sigar sigar = new Sigar(); + Sigar sigar = getSigar(); ProcMem procMem = sigar.getProcMem(sigar.getPid()); diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcStat.java b/bindings/java/src/net/hyperic/sigar/test/TestProcStat.java index 676e35d1..53aeb02f 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcStat.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcStat.java @@ -1,18 +1,16 @@ package net.hyperic.sigar.test; -import junit.framework.TestCase; - import net.hyperic.sigar.Sigar; import net.hyperic.sigar.ProcStat; -public class TestProcStat extends TestCase { +public class TestProcStat extends SigarTestCase { public TestProcStat(String name) { super(name); } public void testCreate() throws Exception { - Sigar sigar = new Sigar(); + Sigar sigar = getSigar(); ProcStat stat = sigar.getProcStat(); diff --git a/bindings/java/src/net/hyperic/sigar/test/TestProcState.java b/bindings/java/src/net/hyperic/sigar/test/TestProcState.java index 8b6e27d6..24f6d0d9 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestProcState.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestProcState.java @@ -1,18 +1,16 @@ package net.hyperic.sigar.test; -import junit.framework.TestCase; - import net.hyperic.sigar.Sigar; import net.hyperic.sigar.ProcState; -public class TestProcState extends TestCase { +public class TestProcState extends SigarTestCase { public TestProcState(String name) { super(name); } public void testCreate() throws Exception { - Sigar sigar = new Sigar(); + Sigar sigar = getSigar(); ProcState procState = sigar.getProcState(sigar.getPid()); diff --git a/bindings/java/src/net/hyperic/sigar/test/TestSwap.java b/bindings/java/src/net/hyperic/sigar/test/TestSwap.java index bf755003..762bb754 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestSwap.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestSwap.java @@ -1,18 +1,16 @@ package net.hyperic.sigar.test; -import junit.framework.TestCase; - import net.hyperic.sigar.Sigar; import net.hyperic.sigar.Swap; -public class TestSwap extends TestCase { +public class TestSwap extends SigarTestCase { public TestSwap(String name) { super(name); } public void testCreate() throws Exception { - Sigar sigar = new Sigar(); + Sigar sigar = getSigar(); Swap swap = sigar.getSwap(); diff --git a/bindings/java/src/net/hyperic/sigar/test/TestUptime.java b/bindings/java/src/net/hyperic/sigar/test/TestUptime.java index 667020ba..23ef47e8 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestUptime.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestUptime.java @@ -1,18 +1,16 @@ package net.hyperic.sigar.test; -import junit.framework.TestCase; - import net.hyperic.sigar.Sigar; import net.hyperic.sigar.Uptime; -public class TestUptime extends TestCase { +public class TestUptime extends SigarTestCase { public TestUptime(String name) { super(name); } public void testCreate() throws Exception { - Sigar sigar = new Sigar(); + Sigar sigar = getSigar(); Uptime uptime = sigar.getUptime();