@Test public void testToString(){ String id ="user"; String dn ="someDn"; String email="user@email.com"; String name ="User Name"; FideliusUserEntry fideliusUserEntry1 = new FideliusUserEntry(id,dn,email,name); Assert.assertNotNull("ToString returns some kind of string", fideliusUserEntry1.toString()); }
@Override public String toString() { return MoreObjects.toStringHelper(this) .add("userId", userId) .add("email", email) .add("name", name) .add("dn", dn) .toString(); }
FideliusUserEntry { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("userId", userId) .add("email", email) .add("name", name) .add("dn", dn) .toString(); } }
FideliusUserEntry { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("userId", userId) .add("email", email) .add("name", name) .add("dn", dn) .toString(); } FideliusUserEntry(String userId, String dn, String email, String name); }
FideliusUserEntry { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("userId", userId) .add("email", email) .add("name", name) .add("dn", dn) .toString(); } FideliusUserEntry(String userId, String dn, String email, String name); String getUserId(); String getEmail(); String getName(); String getDn(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
FideliusUserEntry { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("userId", userId) .add("email", email) .add("name", name) .add("dn", dn) .toString(); } FideliusUserEntry(String userId, String dn, String email, String name); String getUserId(); String getEmail(); String getName(); String getDn(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }