@Test void testToString() { PropertyValidationRule rule = new PropertyValidationRule("testName", "string"); String expected = "PropertyValidationRule [name=testName, type=class java.lang.String]"; assertEquals(expected, rule.toString()); }
@Override public String toString() { return new StringJoiner(", ", "PropertyValidationRule [", "]") .add(String.format("name=%s", name)) .add(String.format("type=%s", type)) .toString(); }
PropertyValidationRule { @Override public String toString() { return new StringJoiner(", ", "PropertyValidationRule [", "]") .add(String.format("name=%s", name)) .add(String.format("type=%s", type)) .toString(); } }
PropertyValidationRule { @Override public String toString() { return new StringJoiner(", ", "PropertyValidationRule [", "]") .add(String.format("name=%s", name)) .add(String.format("type=%s", type)) .toString(); } PropertyValidationRule(@JsonProperty("name") String name,
                                @JsonProperty("type") String type); }
PropertyValidationRule { @Override public String toString() { return new StringJoiner(", ", "PropertyValidationRule [", "]") .add(String.format("name=%s", name)) .add(String.format("type=%s", type)) .toString(); } PropertyValidationRule(@JsonProperty("name") String name,
                                @JsonProperty("type") String type); String getName(); Class<?> getType(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
PropertyValidationRule { @Override public String toString() { return new StringJoiner(", ", "PropertyValidationRule [", "]") .add(String.format("name=%s", name)) .add(String.format("type=%s", type)) .toString(); } PropertyValidationRule(@JsonProperty("name") String name,
                                @JsonProperty("type") String type); String getName(); Class<?> getType(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }