You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Neale Upstone (JIRA)" <ji...@apache.org> on 2009/05/20 10:39:45 UTC

[jira] Commented: (ABDERA-102) Unit tests equality assertions, params in wrong order.

    [ https://issues.apache.org/jira/browse/ABDERA-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12711063#action_12711063 ] 

Neale Upstone commented on ABDERA-102:
--------------------------------------

Not in a position to submit a patch, but the following seems to do the trick in eclipse:

Find:  assertEquals\((.+), (.+)\);
Replace:  assertEquals\($2, $1);

(with regexp switched on naturally)

> Unit tests equality assertions, params in wrong order.
> ------------------------------------------------------
>
>                 Key: ABDERA-102
>                 URL: https://issues.apache.org/jira/browse/ABDERA-102
>             Project: Abdera
>          Issue Type: Improvement
>    Affects Versions: 0.3.0
>            Reporter: Remy Gendron
>            Priority: Trivial
>
> When using assertEquals(), the parameters should be EXPECTED then ACTUAL.
> They are currently mostly in the opposite order.
> No big deal. It just makes the assertion messages more readable/clear if the parameters are provided in the proper order.
> Thanks,
> R.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.