You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2015/03/05 04:50:38 UTC

[jira] [Assigned] (HADOOP-11673) Use org.junit.Assume to skip tests instead of return

     [ https://issues.apache.org/jira/browse/HADOOP-11673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brahma Reddy Battula reassigned HADOOP-11673:
---------------------------------------------

    Assignee: Brahma Reddy Battula

> Use org.junit.Assume to skip tests instead of return
> ----------------------------------------------------
>
>                 Key: HADOOP-11673
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11673
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: test
>            Reporter: Akira AJISAKA
>            Assignee: Brahma Reddy Battula
>            Priority: Minor
>
> We see the following code many times:
> {code:title=TestCodec.java}
>     if (!ZlibFactory.isNativeZlibLoaded(conf)) {
>       LOG.warn("skipped: native libs not loaded");
>       return;
>     }
> {code}
> If {{ZlibFactory.isNativeZlibLoaded(conf)}} is false, the test will *pass*, with a warn log. I'd like to *skip* this test case by using {{org.junit.Assume}}.



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