[
https://issues.apache.org/jira/browse/LANG-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Duncan Jones updated LANG-637:
------------------------------
Attachment: commons-lang3-LANG-637.patch
DiffList.java
DiffBuilder.java
Diffable.java
Diff.java
DiffTest.java
DiffListTest.java
DiffBuilderTest.java
I've attached my latest work on this issue (both as individual files and a
patch). I believe the DiffBuilder is now complete for the non-reflection use
case.
I will now work on adding reflection support. I welcome any comments on the
attached.
> 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
> Priority: Minor
> Fix For: 3.x
>
> Attachments: commons-lang3-LANG-637.patch, Diffable.java,
> DiffBuilder.java, DiffBuilderTest.java, Diff.java, DiffList.java,
> DiffListTest.java, DiffTest.java
>
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira