[
https://issues.apache.org/jira/browse/LANG-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13881511#comment-13881511
]
Duncan Jones commented on LANG-637:
-----------------------------------
URL: http://svn.apache.org/r1561215
Log:
LANG-637: There should be a DifferenceBuilder with a
ReflectionDifferenceBuilder implementation
Added:
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/Diff.java
(with props)
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/DiffBuilder.java
(with props)
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/DiffList.java
(with props)
commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/Diffable.java
(with props)
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/DiffBuilderTest.java
(with props)
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/DiffListTest.java
(with props)
commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/DiffTest.java
(with props)
Modified:
commons/proper/lang/trunk/src/changes/changes.xml
> There should be a DifferenceBuilder with a ReflectionDifferenceBuilder
> implementation
> -------------------------------------------------------------------------------------
>
> Key: LANG-637
> URL: https://issues.apache.org/jira/browse/LANG-637
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.builder.*
> Reporter: Eric Lewis
> Assignee: Duncan Jones
> Priority: Minor
> Fix For: 3.3, Review Patch
>
> Attachments: Diff.java, DiffBuilder.java, DiffBuilderTest.java,
> DiffList.java, DiffListTest.java, DiffTest.java, Diffable.java,
> commons-lang3-LANG-637-complete.patch, commons-lang3-LANG-637.patch
>
>
> The ToStringBuilder and ReflectionToStringBuilder are great tools for
> everyday development.
> We use them to show all the properties in an object, which comes handy
> especially for testing.
> However, JUnit with its assertEquals() just outputs the toString() of the two
> compared objects. For complex objects, this becomes unreadable.
> So, it would be great to have a DifferenceBuilder with a
> ReflectionDifferenceBuilder implementation to be able to get only the
> differing properties of two objects. The question is whether the two objects
> would have to be of the same type or not.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)