@Test public void testShortName(){ User user = getAValidUser(); user.setName("a"); assertTrue(hasViolations(user)); assertFalse(persistInATransaction(user)); }
public void setName(String name) { this.name = name; }
User { public void setName(String name) { this.name = name; } }
User { public void setName(String name) { this.name = name; } User(); }
User { public void setName(String name) { this.name = name; } User(); Long getId(); void setId(Long id); String getName(); void setName(String name); String getMiddleName(); void setMiddleName(String middleName); String getSurname(); void setSurname(String surname); LocalDate getDateOfRegistration(); void setDateOfRegistration(LocalDate dateOfRegistration); LocalDate getDateOfBirth(); void setDateOfBirth(LocalDate dateOfBirth); String getEmail(); void setEmail(String email); }
User { public void setName(String name) { this.name = name; } User(); Long getId(); void setId(Long id); String getName(); void setName(String name); String getMiddleName(); void setMiddleName(String middleName); String getSurname(); void setSurname(String surname); LocalDate getDateOfRegistration(); void setDateOfRegistration(LocalDate dateOfRegistration); LocalDate getDateOfBirth(); void setDateOfBirth(LocalDate dateOfBirth); String getEmail(); void setEmail(String email);  }