i would like to test my services in an architecture Spring/JPA/Hibernate via JUnit.
All is ok for moment, but i used an overriding method of ToString to verify the content :
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this,
ToStringStyle.MULTI_LINE_STYLE);
}
It uses the library commons.lang. The result is correct, but when I check my entities that have relationships (Set for @ OneToMany or @ ManyToMany) it quickly becomes unreadable.
Anyone knows there a way to make JUnit test result more readable in the console?
Thank you.