@Test public void builderAddConsumerShouldAppend() { ComponentRelationships expected = new ComponentRelationships(component, dependencies, consumers); ComponentRelationships actual = ComponentRelationships.builder() .component(component) .dependencies(dependencies) .addConsumer(Consumer.by(consumerComponent)) .build(); Assert.assertEquals(expected, actual); }
public static ComponentRelationshipsBuilder builder() { return new ComponentRelationshipsBuilder(); }
ComponentRelationships { public static ComponentRelationshipsBuilder builder() { return new ComponentRelationshipsBuilder(); } }
ComponentRelationships { public static ComponentRelationshipsBuilder builder() { return new ComponentRelationshipsBuilder(); } @JsonCreator  ComponentRelationships(@JsonProperty("component") Component component,
            @JsonProperty("dependencies") Set<Dependency> dependencies,
            @JsonProperty("consumers") Set<Consumer> consumers); }
ComponentRelationships { public static ComponentRelationshipsBuilder builder() { return new ComponentRelationshipsBuilder(); } @JsonCreator  ComponentRelationships(@JsonProperty("component") Component component,
            @JsonProperty("dependencies") Set<Dependency> dependencies,
            @JsonProperty("consumers") Set<Consumer> consumers); static ComponentRelationships of(Component component, Set<Dependency> dependencies,
            Set<Consumer> consumers); static ComponentRelationships of(Component component, Collection<Relationship> relationships); static ComponentRelationships of(Component component, Relationship... relationships); static Set<Consumer> filterConsumers(Collection<Relationship> relationships); static Set<Dependency> filterDependencies(Collection<Relationship> relationships); boolean hasRelationships(); @Override int hashCode(); @Override boolean equals(Object o); Component getComponent(); Set<Dependency> getDependencies(); Set<Consumer> getConsumers(); @JsonIgnore Set<Relationship> getRelationships(); static ComponentRelationshipsBuilder builder(); }
ComponentRelationships { public static ComponentRelationshipsBuilder builder() { return new ComponentRelationshipsBuilder(); } @JsonCreator  ComponentRelationships(@JsonProperty("component") Component component,
            @JsonProperty("dependencies") Set<Dependency> dependencies,
            @JsonProperty("consumers") Set<Consumer> consumers); static ComponentRelationships of(Component component, Set<Dependency> dependencies,
            Set<Consumer> consumers); static ComponentRelationships of(Component component, Collection<Relationship> relationships); static ComponentRelationships of(Component component, Relationship... relationships); static Set<Consumer> filterConsumers(Collection<Relationship> relationships); static Set<Dependency> filterDependencies(Collection<Relationship> relationships); boolean hasRelationships(); @Override int hashCode(); @Override boolean equals(Object o); Component getComponent(); Set<Dependency> getDependencies(); Set<Consumer> getConsumers(); @JsonIgnore Set<Relationship> getRelationships(); static ComponentRelationshipsBuilder builder();  }