catch NotImplemented

This commit is contained in:
Doug MacEachern 2005-05-10 21:20:51 +00:00
parent 089396f8da
commit 58318b381d
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package net.hyperic.sigar.test;
import net.hyperic.sigar.Sigar;
import net.hyperic.sigar.SigarException;
import net.hyperic.sigar.SigarLoader;
import net.hyperic.sigar.SigarNotImplementedException;
import net.hyperic.sigar.SigarProxy;
import net.hyperic.sigar.SigarProxyCache;
import net.hyperic.sigar.jmx.SigarInvokerJMX;
@ -75,6 +76,8 @@ public class TestInvoker extends SigarTestCase {
Object o = invoker.invoke(query[1]);
traceln(query[0] + ":" + query[1] + "=" + o);
assertTrue(true);
} catch (SigarNotImplementedException e) {
trace(query[0] + " NotImplemented");
} catch (SigarException e) {
assertTrue(false);
}