@Test public void detectPropertiesWithoutRelationshipsShouldReturnEmptySet() { Set<Relationship> expected = new HashSet<>(); ConfigurationPropertiesRelationshipDetector detector = new ConfigurationPropertiesRelationshipDetector( new CereebroProperties()); Set<Relationship> actual = detector.detect(); Assert.assertEquals(expected, actual); }
@Override public Set<Relationship> detect() { return properties.getApplication().getRelationships(); }
ConfigurationPropertiesRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { return properties.getApplication().getRelationships(); } }
ConfigurationPropertiesRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { return properties.getApplication().getRelationships(); } ConfigurationPropertiesRelationshipDetector(CereebroProperties properties); }
ConfigurationPropertiesRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { return properties.getApplication().getRelationships(); } ConfigurationPropertiesRelationshipDetector(CereebroProperties properties); @Override Set<Relationship> detect(); }
ConfigurationPropertiesRelationshipDetector implements RelationshipDetector { @Override public Set<Relationship> detect() { return properties.getApplication().getRelationships(); } ConfigurationPropertiesRelationshipDetector(CereebroProperties properties); @Override Set<Relationship> detect();  }