Package org.apache.aries.jmx

Examples of org.apache.aries.jmx.Logger


    public void testLifeCycleOfNotificationSupport() throws Exception {
       
        BundleContext context = mock(BundleContext.class);
        PackageAdmin admin = mock(PackageAdmin.class);
        StartLevel startLevel = mock(StartLevel.class);
        Logger logger = mock(Logger.class);
       
        BundleState bundleState = new BundleState(context, admin, startLevel, logger);
       
        MBeanServer server1 = mock(MBeanServer.class);
        MBeanServer server2 = mock(MBeanServer.class);
View Full Code Here


   
    @Test
    public void testOpenAndClose() throws Exception {
       
        BundleContext context = mock(BundleContext.class);
        Logger logger = mock(Logger.class);
       
        ServiceReference packageAdminRef = mock(ServiceReference.class);
        PackageAdmin packageAdmin = mock(PackageAdmin.class);
        when(context.getServiceReference(PackageAdmin.class.getName())).thenReturn(packageAdminRef);
        when(context.getService(packageAdminRef)).thenReturn(packageAdmin);
View Full Code Here

   
    @Test
    public void testNotificationsForServiceEvents() throws Exception {
       
        BundleContext context = mock(BundleContext.class);
        Logger logger = mock(Logger.class);
       
        ServiceState serviceState = new ServiceState(context, logger);
       
        ServiceReference reference = mock(ServiceReference.class);
        Bundle b1 = mock(Bundle.class);
View Full Code Here

   
    @Test
    public void testLifeCycleOfNotificationSupport() throws Exception {
       
        BundleContext context = mock(BundleContext.class);
        Logger logger = mock(Logger.class);
       
        ServiceState serviceState = new ServiceState(context, logger);
       
        MBeanServer server1 = mock(MBeanServer.class);
        MBeanServer server2 = mock(MBeanServer.class);
View Full Code Here

   
    @Test
    public void testConstructInjectMBean() {
       
        BundleContext bundleContext = mock(BundleContext.class);
        Logger agentLogger = mock(Logger.class);  
        JMXAgentContext agentContext = new JMXAgentContext(bundleContext, null, agentLogger);
        ConfigurationAdmin cAdmin = mock(ConfigurationAdmin.class);
       
        ConfigurationAdminMBeanHandler handler = new ConfigurationAdminMBeanHandler(agentContext);
        StandardMBean mbean = handler.constructInjectMBean(cAdmin);
View Full Code Here

  
    @Test
    public void testOpen() throws Exception {
       
        BundleContext context = mock(BundleContext.class);
        Logger logger = mock(Logger.class);
       
        ServiceStateMBeanHandler handler = new ServiceStateMBeanHandler(context, logger);
        handler.open();
       
        assertNotNull(handler.getMbean());
View Full Code Here

TOP

Related Classes of org.apache.aries.jmx.Logger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.