better trace NOTIMPL fields

This commit is contained in:
Doug MacEachern 2007-08-15 17:27:25 +00:00
parent dc1ddb0943
commit 7c83b382cd
1 changed files with 7 additions and 1 deletions

View File

@ -166,7 +166,13 @@ public abstract class SigarTestCase extends TestCase {
if (!name.startsWith("get")) {
continue;
}
traceln(name + "=" + methods[i].invoke(obj, new Object[0]));
Object val = methods[i].invoke(obj, new Object[0]);
if ((val instanceof Long) &&
((Long)val).longValue() == Sigar.FIELD_NOTIMPL)
{
val = "NOTIMPL";
}
traceln(name + "=" + val);
}
}
}