Package org.jolokia.backend

Examples of org.jolokia.backend.Config


        verify(handler);
    }

    @Test
    public void registerAtMBeanServer() throws MalformedObjectNameException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException {
        Config config = new Config(null,null,null);
        ObjectName oName = new ObjectName("jolokia:type=Config");
        ObjectInstance oInstance = new ObjectInstance(oName,Config.class.getName());
        MBeanServer server = EasyMock.createMock(MBeanServer.class);
        expect(server.registerMBean(eq(config),eq(oName))).andReturn(oInstance);
        replay(server);
View Full Code Here


        verify(server);
    }

    @Test
    public void registerAtMBeanServer2() throws MalformedObjectNameException, MBeanRegistrationException, InstanceAlreadyExistsException, NotCompliantMBeanException {
        Config config = new Config(null,null,null);
        ObjectInstance oInstance = new ObjectInstance("jolokia:type=dummy",Config.class.getName());
        MBeanServer server = EasyMock.createMock(MBeanServer.class);
        expect(server.registerMBean(config,null)).andReturn(oInstance);
        replay(server);
View Full Code Here

TOP

Related Classes of org.jolokia.backend.Config

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.