@Test public void testToString() throws Exception { assertEquals(String.format("User(id=%s, username=%s)", id, username), user.toString()); }
@Override public String toString() { return String.format("User(id=%s, username=%s)", id, username); }
User { @Override public String toString() { return String.format("User(id=%s, username=%s)", id, username); } }
User { @Override public String toString() { return String.format("User(id=%s, username=%s)", id, username); } User(UUID id, String username); }
User { @Override public String toString() { return String.format("User(id=%s, username=%s)", id, username); } User(UUID id, String username); UUID getId(); String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString(); }
User { @Override public String toString() { return String.format("User(id=%s, username=%s)", id, username); } User(UUID id, String username); UUID getId(); String getUsername(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }