@Test public void testValidObject() throws Exception { VisibleModelExample infra = new VisibleModelExample(); infra.setName("foo"); ImmutableList<String> violations = validator.validate(infra); assertTrue(violations.isEmpty()); }
public void setName(String name) { this.name = name; }
VisibleModel extends Model implements Named { public void setName(String name) { this.name = name; } }
VisibleModel extends Model implements Named { public void setName(String name) { this.name = name; }  }
VisibleModel extends Model implements Named { public void setName(String name) { this.name = name; }  String getName(); void setName(String name); Set<String> getTags(); void setTags(Set<String> tags); @Override boolean equals(Object o); @Override int hashCode(); }
VisibleModel extends Model implements Named { public void setName(String name) { this.name = name; }  String getName(); void setName(String name); Set<String> getTags(); void setTags(Set<String> tags); @Override boolean equals(Object o); @Override int hashCode();  }