@Test public void staticFactoryMethodShouldReturnSameAsConstructor() { Component b = TestHelper.componentB(); Dependency expected = new Dependency(b); Dependency actual = Dependency.on(b); Assert.assertEquals(expected, actual); }
public static Dependency on(Component component) { return new Dependency(component); }
Dependency extends Relationship { public static Dependency on(Component component) { return new Dependency(component); } }
Dependency extends Relationship { public static Dependency on(Component component) { return new Dependency(component); } @JsonCreator  Dependency(@JsonProperty("component") Component component); }
Dependency extends Relationship { public static Dependency on(Component component) { return new Dependency(component); } @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 static Dependency on(Component component) { return new Dependency(component); } @JsonCreator  Dependency(@JsonProperty("component") Component component); static Dependency on(Component component); Set<Relationship> asRelationshipSet(); @Override int hashCode(); @Override boolean equals(Object o);  }