add another test for software values
This commit is contained in:
parent
898e933070
commit
29d57da8a9
|
@ -62,7 +62,6 @@ public class TestRegistryKey extends SigarTestCase {
|
||||||
RegistryKey msmq = null;
|
RegistryKey msmq = null;
|
||||||
try {
|
try {
|
||||||
msmq = ms.openSubKey("MSMQ\\Parameters");
|
msmq = ms.openSubKey("MSMQ\\Parameters");
|
||||||
|
|
||||||
} catch (Exception e) { /*not installed - ok*/ }
|
} catch (Exception e) { /*not installed - ok*/ }
|
||||||
if (msmq != null) {
|
if (msmq != null) {
|
||||||
traceln("MSMQ...");
|
traceln("MSMQ...");
|
||||||
|
@ -71,6 +70,18 @@ public class TestRegistryKey extends SigarTestCase {
|
||||||
assertLengthTrace("CurrentBuild", build);
|
assertLengthTrace("CurrentBuild", build);
|
||||||
int id = msmq.getIntValue("SeqID");
|
int id = msmq.getIntValue("SeqID");
|
||||||
assertGtZeroTrace("SeqID", id);
|
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();
|
ms.close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue