@Test public void testGetService() { final String serviceId = ArtemisClientConstants.RegistryService.Net.serviceKey; final DiscoveryConfig discoveryConfig = new DiscoveryConfig(serviceId); final Service service = _discoveryClientImpl.getService(discoveryConfig); Assert.assertEquals(serviceId, service.getServiceId()); Assert.assertNotNull(service.getInstances()); Assert.assertTrue(service.getInstances().size() >= 0); }
@Override public Service getService(final DiscoveryConfig discoveryConfig) { DiscoveryConfigChecker.DEFAULT.check(discoveryConfig, "discoveryConfig"); return serviceRepository.getService(discoveryConfig); }
DiscoveryClientImpl implements DiscoveryClient { @Override public Service getService(final DiscoveryConfig discoveryConfig) { DiscoveryConfigChecker.DEFAULT.check(discoveryConfig, "discoveryConfig"); return serviceRepository.getService(discoveryConfig); } }
DiscoveryClientImpl implements DiscoveryClient { @Override public Service getService(final DiscoveryConfig discoveryConfig) { DiscoveryConfigChecker.DEFAULT.check(discoveryConfig, "discoveryConfig"); return serviceRepository.getService(discoveryConfig); } DiscoveryClientImpl(final String clientId, final ArtemisClientManagerConfig managerConfig); }
DiscoveryClientImpl implements DiscoveryClient { @Override public Service getService(final DiscoveryConfig discoveryConfig) { DiscoveryConfigChecker.DEFAULT.check(discoveryConfig, "discoveryConfig"); return serviceRepository.getService(discoveryConfig); } DiscoveryClientImpl(final String clientId, final ArtemisClientManagerConfig managerConfig); @Override Service getService(final DiscoveryConfig discoveryConfig); @Override void registerServiceChangeListener(final DiscoveryConfig discoveryConfig, final ServiceChangeListener listener); }
DiscoveryClientImpl implements DiscoveryClient { @Override public Service getService(final DiscoveryConfig discoveryConfig) { DiscoveryConfigChecker.DEFAULT.check(discoveryConfig, "discoveryConfig"); return serviceRepository.getService(discoveryConfig); } DiscoveryClientImpl(final String clientId, final ArtemisClientManagerConfig managerConfig); @Override Service getService(final DiscoveryConfig discoveryConfig); @Override void registerServiceChangeListener(final DiscoveryConfig discoveryConfig, final ServiceChangeListener listener);  }