test Service.getServiceConfigs
This commit is contained in:
parent
f53c99c43e
commit
dd350667ea
|
@ -67,15 +67,17 @@ public class TestService extends SigarTestCase {
|
|||
"Service.Name.ct=Ev",
|
||||
"Service.Path.ew=.exe",
|
||||
};
|
||||
Sigar sigar = new Sigar();
|
||||
try {
|
||||
|
||||
for (int i=0; i<ptql.length; i++) {
|
||||
services = Service.getServiceNames(sigar, ptql[i]);
|
||||
services = Service.getServiceNames(getSigar(), ptql[i]);
|
||||
assertGtZeroTrace(ptql[i], services.size());
|
||||
}
|
||||
} finally {
|
||||
sigar.close();
|
||||
}
|
||||
|
||||
public void testServiceConfig() throws Exception {
|
||||
List configs =
|
||||
Service.getServiceConfigs(getSigar(), "svchost.exe");
|
||||
assertGtZeroTrace("getServiceConfigs", configs.size());
|
||||
}
|
||||
|
||||
public void testServiceCreateDelete() throws Exception {
|
||||
|
|
Loading…
Reference in New Issue