test Service.getServiceConfigs
This commit is contained in:
parent
f53c99c43e
commit
dd350667ea
|
@ -67,17 +67,19 @@ public class TestService extends SigarTestCase {
|
||||||
"Service.Name.ct=Ev",
|
"Service.Name.ct=Ev",
|
||||||
"Service.Path.ew=.exe",
|
"Service.Path.ew=.exe",
|
||||||
};
|
};
|
||||||
Sigar sigar = new Sigar();
|
|
||||||
try {
|
for (int i=0; i<ptql.length; i++) {
|
||||||
for (int i=0; i<ptql.length; i++) {
|
services = Service.getServiceNames(getSigar(), ptql[i]);
|
||||||
services = Service.getServiceNames(sigar, ptql[i]);
|
assertGtZeroTrace(ptql[i], services.size());
|
||||||
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 {
|
public void testServiceCreateDelete() throws Exception {
|
||||||
if (!TEST_CREATE) {
|
if (!TEST_CREATE) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue