Package com.alibaba.dubbo.registry.status

Examples of com.alibaba.dubbo.registry.status.RegistryStatusChecker


        AbstractRegistryFactory.destroyAll();
    }

    @Test
    public void testCheckUnknown() {
        assertEquals(Status.Level.UNKNOWN, new RegistryStatusChecker().check().getLevel());
    }
View Full Code Here


    @Test
    public void testCheckOK() {
        ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension().getRegistry(registryUrl);
        ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension().getRegistry(registryUrl2);
        assertEquals(Status.Level.OK, new RegistryStatusChecker().check().getLevel());
        String message = new RegistryStatusChecker().check().getMessage();
        Assert.assertTrue(message.contains(registryUrl.getAddress() + "(connected)"));
        Assert.assertTrue(message.contains(registryUrl2.getAddress() + "(connected)"));
    }
View Full Code Here

TOP

Related Classes of com.alibaba.dubbo.registry.status.RegistryStatusChecker

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.