@Test public void dependencies() { ComponentRelationshipsProperties c = new ComponentRelationshipsProperties(); DependencyProperties d = createDependency("iceman", "superhero"); c.setDependencies(Arrays.asList(d)); Set<Dependency> expected = new HashSet<>(Arrays.asList(Dependency.on(Component.of("iceman", "superhero")))); Set<Dependency> actual = c.dependencies(); Assert.assertEquals(expected, actual); }
public Set<Dependency> dependencies() { return dependencies.stream().map(DependencyProperties::toDependency).collect(Collectors.toSet()); }
ComponentRelationshipsProperties { public Set<Dependency> dependencies() { return dependencies.stream().map(DependencyProperties::toDependency).collect(Collectors.toSet()); } }
ComponentRelationshipsProperties { public Set<Dependency> dependencies() { return dependencies.stream().map(DependencyProperties::toDependency).collect(Collectors.toSet()); }  }
ComponentRelationshipsProperties { public Set<Dependency> dependencies() { return dependencies.stream().map(DependencyProperties::toDependency).collect(Collectors.toSet()); }  Set<Dependency> dependencies(); Set<Consumer> consumers(); Set<Relationship> getRelationships(); }
ComponentRelationshipsProperties { public Set<Dependency> dependencies() { return dependencies.stream().map(DependencyProperties::toDependency).collect(Collectors.toSet()); }  Set<Dependency> dependencies(); Set<Consumer> consumers(); Set<Relationship> getRelationships();  }