commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felipe Leme (JIRA)" <>
Subject [jira] Created: (JELLY-204) [junit][PATCH] Better error messages when assertEquals fails
Date Wed, 02 Mar 2005 03:18:49 GMT
[junit][PATCH] Better error messages when assertEquals fails

         Key: JELLY-204
     Project: jelly
        Type: Improvement
    Reporter: Felipe Leme
    Priority: Minor
 Attachments: JELLY-204

When assertEquals fails, only the JEXL representation of the expression is shown, not the
actual/expected values, which makes it hard do diagnosticate what's wrong. For instance:

Expected expression: 5
Actual expression: ${oneLineNoNewLine.length().toString()}

So, I'm sending a patch that would instead show the following (in the example above):

Expected expression: (5)=(5)
Actual expression: (${oneLineNoNewLine.length().toString()})=(6)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message