@Test public void nullEurekaClientListShouldReturnEmptyRels() { EurekaServerRelationshipDetector detector = new EurekaServerRelationshipDetector(null); Assertions.assertThat(detector.detect()).isEmpty(); }
@Override public Set<Relationship> detect() { if (eurekaClients.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.HTTP_APPLICATION_REGISTRY)).asRelationshipSet(); }
EurekaServerRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (eurekaClients.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.HTTP_APPLICATION_REGISTRY)).asRelationshipSet(); } }
EurekaServerRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (eurekaClients.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.HTTP_APPLICATION_REGISTRY)).asRelationshipSet(); } EurekaServerRelationshipDetector(List<EurekaClient> eurekaClients); }
EurekaServerRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (eurekaClients.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.HTTP_APPLICATION_REGISTRY)).asRelationshipSet(); } EurekaServerRelationshipDetector(List<EurekaClient> eurekaClients); @Override Set<Relationship> detect(); }
EurekaServerRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { if (eurekaClients.isEmpty()) { return Collections.emptySet(); } return Dependency.on(Component.of(defaultName, ComponentType.HTTP_APPLICATION_REGISTRY)).asRelationshipSet(); } EurekaServerRelationshipDetector(List<EurekaClient> eurekaClients); @Override Set<Relationship> detect();  }