add another test for software values

This commit is contained in:
Doug MacEachern 2008-09-12 00:40:11 +00:00
parent 898e933070
commit 29d57da8a9
1 changed files with 12 additions and 1 deletions

View File

@ -62,7 +62,6 @@ public class TestRegistryKey extends SigarTestCase {
RegistryKey msmq = null;
try {
msmq = ms.openSubKey("MSMQ\\Parameters");
} catch (Exception e) { /*not installed - ok*/ }
if (msmq != null) {
traceln("MSMQ...");
@ -71,6 +70,18 @@ public class TestRegistryKey extends SigarTestCase {
assertLengthTrace("CurrentBuild", build);
int id = msmq.getIntValue("SeqID");
assertGtZeroTrace("SeqID", id);
msmq.close();
}
RegistryKey sql = null;
try {
sql = ms.openSubKey("Microsoft SQL Server\\MSSQL.1\\Setup");
} catch (Exception e) { /*not installed - ok*/ }
if (sql != null) {
traceln("MsSQL...");
String edition = sql.getStringValue("Edition");
assertLengthTrace("Edition", edition);
sql.close();
}
ms.close();
}