@Test public void consumers() { ComponentRelationshipsProperties c = new ComponentRelationshipsProperties(); ConsumerProperties consumer = createConsumer("galactus", "villain"); c.setConsumers(Arrays.asList(consumer)); Set<Consumer> expected = new HashSet<>(Arrays.asList(Consumer.by(Component.of("galactus", "villain")))); Set<Consumer> actual = c.consumers(); Assert.assertEquals(expected, actual); }
public Set<Consumer> consumers() { return consumers.stream().map(ConsumerProperties::toConsumer).collect(Collectors.toSet()); }
ComponentRelationshipsProperties { public Set<Consumer> consumers() { return consumers.stream().map(ConsumerProperties::toConsumer).collect(Collectors.toSet()); } }
ComponentRelationshipsProperties { public Set<Consumer> consumers() { return consumers.stream().map(ConsumerProperties::toConsumer).collect(Collectors.toSet()); }  }
ComponentRelationshipsProperties { public Set<Consumer> consumers() { return consumers.stream().map(ConsumerProperties::toConsumer).collect(Collectors.toSet()); }  Set<Dependency> dependencies(); Set<Consumer> consumers(); Set<Relationship> getRelationships(); }
ComponentRelationshipsProperties { public Set<Consumer> consumers() { return consumers.stream().map(ConsumerProperties::toConsumer).collect(Collectors.toSet()); }  Set<Dependency> dependencies(); Set<Consumer> consumers(); Set<Relationship> getRelationships();  }