@Test public void testToString() { String toString = Consumer.by(Component.of("wolverine", "xmen")).toString(); Assert.assertTrue(toString.contains("wolverine")); Assert.assertTrue(toString.contains("xmen")); }
public static Consumer by(Component consumer) { return new Consumer(consumer); }
Consumer extends Relationship { public static Consumer by(Component consumer) { return new Consumer(consumer); } }
Consumer extends Relationship { public static Consumer by(Component consumer) { return new Consumer(consumer); } @JsonCreator  Consumer(@JsonProperty("component") Component component); }
Consumer extends Relationship { public static Consumer by(Component consumer) { return new Consumer(consumer); } @JsonCreator  Consumer(@JsonProperty("component") Component component); static Consumer by(Component consumer); @Override int hashCode(); @Override boolean equals(Object o); }
Consumer extends Relationship { public static Consumer by(Component consumer) { return new Consumer(consumer); } @JsonCreator  Consumer(@JsonProperty("component") Component component); static Consumer by(Component consumer); @Override int hashCode(); @Override boolean equals(Object o);  }