public class TestBundleDiag extends Object
Constructor and Description |
---|
TestBundleDiag(org.osgi.framework.BundleContext bundleContext,
org.apache.karaf.bundle.core.BundleService bundleService) |
Modifier and Type | Method and Description |
---|---|
void |
checkBundleDiagInfos(long timeout,
TimeUnit timeoutUnit)
Does the equivalent of the "diag" CLI command, and fails the test if anything incl.
|
public TestBundleDiag(org.osgi.framework.BundleContext bundleContext, org.apache.karaf.bundle.core.BundleService bundleService)
public void checkBundleDiagInfos(long timeout, TimeUnit timeoutUnit)
The implementation is based on Karaf's BundleService, and not the BundleStateService, because each Karaf supported DI system (such as Blueprint and Declarative Services, see String constants in BundleStateService), will have a separate BundleStateService. The BundleService however will contain the combined status of all BundleStateServices.
Copyright © 2018 OpenDaylight. All rights reserved.