Search in sources :

Example 11 with Registry

use of com.alibaba.dubbo.registry.Registry in project dubbo by alibaba.

the class AbstractRegistryFactoryTest method testRegistryFactoryGroupCache.

@Test
public void testRegistryFactoryGroupCache() throws Exception {
    Registry registry1 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":2233?group=aaa"));
    Registry registry2 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":2233?group=bbb"));
    Assert.assertNotSame(registry1, registry2);
}
Also used : Registry(com.alibaba.dubbo.registry.Registry) Test(org.junit.Test)

Aggregations

Registry (com.alibaba.dubbo.registry.Registry)11 URL (com.alibaba.dubbo.common.URL)5 Test (org.junit.Test)4 Page (com.alibaba.dubbo.container.page.Page)3 AbstractRegistry (com.alibaba.dubbo.registry.support.AbstractRegistry)3 ArrayList (java.util.ArrayList)3 List (java.util.List)3 Status (com.alibaba.dubbo.common.status.Status)1 ApplicationConfig (com.alibaba.dubbo.config.ApplicationConfig)1 RegistryConfig (com.alibaba.dubbo.config.RegistryConfig)1 ServiceConfig (com.alibaba.dubbo.config.ServiceConfig)1 DemoService (com.alibaba.dubbo.config.spring.api.DemoService)1 MockRegistry (com.alibaba.dubbo.config.spring.registry.MockRegistry)1 RegistryService (com.alibaba.dubbo.registry.RegistryService)1 Exporter (com.alibaba.dubbo.rpc.Exporter)1 GenericException (com.alibaba.dubbo.rpc.service.GenericException)1 GenericService (com.alibaba.dubbo.rpc.service.GenericService)1 JUnitMatchers.containsString (org.junit.matchers.JUnitMatchers.containsString)1