use of org.osgi.service.provisioning.ProvisioningService in project aries by apache.
the class ProvisioningServiceMBeanHandlerTest method testConstructInjectMBean.
@Test
public void testConstructInjectMBean() {
BundleContext bundleContext = mock(BundleContext.class);
Logger agentLogger = mock(Logger.class);
JMXAgentContext agentContext = new JMXAgentContext(bundleContext, null, agentLogger);
ProvisioningService provService = mock(ProvisioningService.class);
ProvisioningServiceMBeanHandler handler = new ProvisioningServiceMBeanHandler(agentContext);
StandardMBean mbean = handler.constructInjectMBean(provService);
assertNotNull(mbean);
}
Aggregations