hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-12472) Make GenericTestUtils.assertExceptionContains robust
Date Tue, 27 Oct 2015 00:12:28 GMT

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

Hudson commented on HADOOP-12472:
---------------------------------

FAILURE: Integrated in Hadoop-Mapreduce-trunk #2530 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/2530/])
HADOOP-12472. Make GenericTestUtils.assertExceptionContains robust. (jing9: rev a01a209fbed33b2ecaf9e736631e64abefae01aa)
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/GenericTestUtils.java
* hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/test/TestGenericTestUtils.java
* hadoop-common-project/hadoop-common/CHANGES.txt


> Make GenericTestUtils.assertExceptionContains robust
> ----------------------------------------------------
>
>                 Key: HADOOP-12472
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12472
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 3.0.0
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>            Priority: Minor
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-12472-001.patch
>
>
> {{GenericTestUtils.assertExceptionContains}} calls {{Exception.getMessage()}}, followed
by msg.contains().
> This will NPE for an exception with a null message, such as NPE.
> # it should call toString()
> # and do an assertNotNull on the result in case some subclass does something very bad
> # and for safety, check the asser



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message