@Test public void asRelationshipSet() { Dependency dependency = Dependency.on(Component.of("x", "y")); Set<Relationship> rels = dependency.asRelationshipSet(); Assertions.assertThat(rels).isEqualTo(new HashSet<>(Arrays.asList(dependency))); }
public Set<Relationship> asRelationshipSet() { return new HashSet<>(Arrays.asList(this)); }
Dependency extends Relationship { public Set<Relationship> asRelationshipSet() { return new HashSet<>(Arrays.asList(this)); } }
Dependency extends Relationship { public Set<Relationship> asRelationshipSet() { return new HashSet<>(Arrays.asList(this)); } @JsonCreator  Dependency(@JsonProperty("component") Component component); }
Dependency extends Relationship { public Set<Relationship> asRelationshipSet() { return new HashSet<>(Arrays.asList(this)); } @JsonCreator  Dependency(@JsonProperty("component") Component component); static Dependency on(Component component); Set<Relationship> asRelationshipSet(); @Override int hashCode(); @Override boolean equals(Object o); }
Dependency extends Relationship { public Set<Relationship> asRelationshipSet() { return new HashSet<>(Arrays.asList(this)); } @JsonCreator  Dependency(@JsonProperty("component") Component component); static Dependency on(Component component); Set<Relationship> asRelationshipSet(); @Override int hashCode(); @Override boolean equals(Object o);  }