@Test(expected = NullPointerException.class) public void constructorWithNullNameShouldThrowNullPointerException() { Component.of(null, "type"); }
public static Component of(String name, String type) { return new Component(name, type); }
Component { public static Component of(String name, String type) { return new Component(name, type); } }
Component { public static Component of(String name, String type) { return new Component(name, type); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); }
Component { public static Component of(String name, String type) { return new Component(name, type); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); static Component of(String name, String type); @Override int hashCode(); @Override boolean equals(Object o); String asString(); String getName(); String getType(); }
Component { public static Component of(String name, String type) { return new Component(name, type); } @JsonCreator  Component(@JsonProperty("name") String name, @JsonProperty("type") String type); static Component of(String name, String type); @Override int hashCode(); @Override boolean equals(Object o); String asString(); String getName(); String getType();  }