@Test public void setStatus() throws ServiceCombException { new Expectations() { { serviceCombClient.updateInstanceStatus(anyString, anyString, "UP"); result = true; } }; ServiceCombServiceRegistry serviceCombServiceRegistry = new ServiceCombServiceRegistry( serviceCombClient, heartbeatScheduler, serviceCombDiscoveryProperties, serviceCombWatcher, tagsProperties); serviceCombServiceRegistry.setStatus(registration, "UP"); }
@Override public void setStatus(ServiceCombRegistration registration, String status) { try { serviceCombClient.updateInstanceStatus(serviceID, instanceID, status); } catch (ServiceCombException e) { LOGGER.error("setStatus failed", e); } }
ServiceCombServiceRegistry implements ServiceRegistry<ServiceCombRegistration> { @Override public void setStatus(ServiceCombRegistration registration, String status) { try { serviceCombClient.updateInstanceStatus(serviceID, instanceID, status); } catch (ServiceCombException e) { LOGGER.error("setStatus failed", e); } } }
ServiceCombServiceRegistry implements ServiceRegistry<ServiceCombRegistration> { @Override public void setStatus(ServiceCombRegistration registration, String status) { try { serviceCombClient.updateInstanceStatus(serviceID, instanceID, status); } catch (ServiceCombException e) { LOGGER.error("setStatus failed", e); } } ServiceCombServiceRegistry(ServiceCombClient serviceCombClient,
      HeartbeatScheduler heartbeatScheduler,
      ServiceCombDiscoveryProperties serviceCombDiscoveryProperties,
      ServiceCombWatcher serviceCombWatcher,
      TagsProperties tagsProperties); }
ServiceCombServiceRegistry implements ServiceRegistry<ServiceCombRegistration> { @Override public void setStatus(ServiceCombRegistration registration, String status) { try { serviceCombClient.updateInstanceStatus(serviceID, instanceID, status); } catch (ServiceCombException e) { LOGGER.error("setStatus failed", e); } } ServiceCombServiceRegistry(ServiceCombClient serviceCombClient,
      HeartbeatScheduler heartbeatScheduler,
      ServiceCombDiscoveryProperties serviceCombDiscoveryProperties,
      ServiceCombWatcher serviceCombWatcher,
      TagsProperties tagsProperties); @Override void register(ServiceCombRegistration registration); @Override void deregister(ServiceCombRegistration registration); @Override void close(); @Override void setStatus(ServiceCombRegistration registration, String status); @Override String getStatus(ServiceCombRegistration registration); String getServiceID(); String getInstanceID(); }
ServiceCombServiceRegistry implements ServiceRegistry<ServiceCombRegistration> { @Override public void setStatus(ServiceCombRegistration registration, String status) { try { serviceCombClient.updateInstanceStatus(serviceID, instanceID, status); } catch (ServiceCombException e) { LOGGER.error("setStatus failed", e); } } ServiceCombServiceRegistry(ServiceCombClient serviceCombClient,
      HeartbeatScheduler heartbeatScheduler,
      ServiceCombDiscoveryProperties serviceCombDiscoveryProperties,
      ServiceCombWatcher serviceCombWatcher,
      TagsProperties tagsProperties); @Override void register(ServiceCombRegistration registration); @Override void deregister(ServiceCombRegistration registration); @Override void close(); @Override void setStatus(ServiceCombRegistration registration, String status); @Override String getStatus(ServiceCombRegistration registration); String getServiceID(); String getInstanceID();  }