From f56e1c0744be3ae463c2a2313170fda636084243 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 6 Jul 2004 04:18:02 +0000 Subject: [PATCH] use super class getProperty --- .../src/net/hyperic/sigar/test/TestFQDN.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/test/TestFQDN.java b/bindings/java/src/net/hyperic/sigar/test/TestFQDN.java index adc9857a..2b36a9ae 100644 --- a/bindings/java/src/net/hyperic/sigar/test/TestFQDN.java +++ b/bindings/java/src/net/hyperic/sigar/test/TestFQDN.java @@ -1,10 +1,5 @@ package net.hyperic.sigar.test; -import java.io.IOException; -import java.io.File; -import java.io.FileInputStream; -import java.util.Properties; - import net.hyperic.sigar.Sigar; public class TestFQDN extends SigarTestCase { @@ -14,17 +9,6 @@ public class TestFQDN extends SigarTestCase { } public void testCreate() throws Exception { - Properties props = new Properties(); - File f = new File(System.getProperty("user.home"), - ".sigar.properties"); - - if (f.exists()) { - try { - props.load(new FileInputStream(f)); - } catch (IOException e) { - e.printStackTrace(); - } - } String fqdn = getSigar().getFQDN(); @@ -34,7 +18,7 @@ public class TestFQDN extends SigarTestCase { if (!validFQDN) { //wont get a valid fqdn on laptop at home //allow to fake with ant -Dsigar.fqdn=foo.bar - String pfake = props.getProperty("sigar.fqdn"); + String pfake = getProperty("sigar.fqdn"); String fake = System.getProperty("sigar.fqdn", pfake); if ("".equals(fake)) {