Added toStirng method to Person.
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
|
||||
package org.springframework.ldap.itest;
|
||||
|
||||
import org.apache.commons.lang.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang.builder.ToStringStyle;
|
||||
|
||||
/**
|
||||
* Dummy bean to be used in the LdapTemplate integration tests.
|
||||
*
|
||||
@@ -61,4 +64,9 @@ public class Person {
|
||||
public void setPhone(String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user