use of org.apache.dubbo.registry.client.DefaultServiceInstance in project dubbo by alibaba.
the class EurekaServiceDiscoveryTest method init.
@BeforeEach
public void init() throws Exception {
serviceDiscovery = new EurekaServiceDiscovery();
serviceDiscovery.initialize(registryURL);
serviceInstance = new DefaultServiceInstance("test", "127.0.0.1", NetUtils.getAvailablePort());
serviceDiscovery.register(serviceInstance);
}
Aggregations