[ 
https://issues.apache.org/jira/browse/HADOOP-6479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797136#action_12797136
 ] 

Steve Loughran commented on HADOOP-6479:
----------------------------------------

This patch uses {{assertEquals()}} over {{assertTrue(before.equals(afterX))}}; 
should be more meaningful

> TestUTF8 assertions could fail with better text 
> ------------------------------------------------
>
>                 Key: HADOOP-6479
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6479
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 0.22.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>         Attachments: HADOOP-6479.patch
>
>
> My HADOOP-6220 patch failed on Hudson with an error TestUTF8, but not one 
> that is in any way useful:
> {code}
> Error Message: null
> Stacktrace:
> junit.framework.AssertionFailedError: null
>       at org.apache.hadoop.io.TestUTF8.testIO(TestUTF8.java:80)
> {code}
> The tests should use better assertions for easier diagnostics

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

Reply via email to