You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Eric Lewis (JIRA)" <ji...@apache.org> on 2010/07/23 13:36:50 UTC

[jira] Created: (LANG-637) There should be a DifferenceBuilder with a ReflectionDifferenceBuilder implementation

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: General
            Reporter: Eric Lewis
            Priority: Minor


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.
-
You can reply to this email to add a comment to the issue online.